// GET: Document/Create public ActionResult Create() { var MyProjects = MyProjectService.GetMany(); ViewBag.ListProjects = new SelectList(MyProjects, "ProjectId", "Name"); //viewbag :variable pour tronsporter les données du controller lil vue return(View()); }
// GET: Project public ActionResult Index() { var res = sc.GetMany(); return(View(res)); }