public List <Mandate> GetMandats() { var mandat = gm.GetAllMandats(); List <Mandate> f = new List <Mandate>(); foreach (var item in mandat) { f.Add(new Mandate { Id = item.Id, start_Date = item.start_Date, ProjectId = item.ProjectId, end_Date = item.end_Date, Fees = item.Fees, }); } return(f); }
// GET: Mandate public ActionResult Index() { var r = gm.GetAllMandats(); return(View(r)); }