public ActionResult Create()
        {
            ViewBag.idEmploye = new SelectList(em.GetAll(), "id", "nom");


            return(View());
        }
Ejemplo n.º 2
0
        // 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();*/
        }
Ejemplo n.º 3
0
 // GET: Employe
 public ActionResult IndexEmploye()
 {
     return(View(e.GetAll().ToList()));
 }