I need to group by Names and to sum all the instance of the name this is my code in the controller:
public class FansController : Controller { private dbFan
var result = from f in db.fans group 1 by f.Name into g select new { Name = g.Key, Amount = g.Count() };
Now the @model should currently be:
@model
IEnumerable
@model IEnumerable