public virtual void Init(FunctiRepository functie, AngajatRepository angajat, UtilajRepository Utilaje, int id) { FunctiAngajati = new SelectList( functie.GetList(), "Id", "Denumire"); Denumire_angajati = new SelectList(angajat.ListaPersonalizate(id), "Id", "Nume"); utilaje = new SelectList(Utilaje.ListPersonalization(id), "Id", "Denumire"); }
public ActionResult Index(int id) { var item = _utilaj.ListPersonalization(id); return(View(item)); }