public ActionResult Create() { ViewBag.idEmploye = new SelectList(em.GetAll(), "id", "nom"); return(View()); }
// GET: testts public ActionResult Index() { tp_jsf_timesheet time = new tp_jsf_timesheet(); Employe ee = new Employe(); var myModel = new testt(); myModel.listA = ee.GetAll(); // ts.Add(tp_jsf_timesheet); return(View(myModel)); /* IEnumerable<tp_jsf_employe> list = ts.GetAll();*/ }
// GET: Employe public ActionResult IndexEmploye() { return(View(e.GetAll().ToList())); }