public ActionResult dash() { var clients = ss.AllClients(); List <int> repartition = new List <int>(); var clientsNames = clients.Select(x => x.Nom).Distinct(); foreach (var item in clientsNames) { foreach (Domain.Entity.Client c in clients) { repartition.Add(c.NbrRessource); } } var rep = repartition; ViewBag.rep = repartition.ToList(); ViewBag.clientsNames = clientsNames; return(View()); }