Пример #1
0
 public ActionResult Create()
 {
     ViewBag.DepartmentId = new SelectList(managerDepartment.List(), "Id", "Name");
     ViewBag.ManagerId    = managerPersonnel.List();
     return(View());
 }
Пример #2
0
 public ActionResult Index()
 {
     return(View(managerDepartment.List()));
 }