예제 #1
0
 private void SetViewBag()
 {
     ViewBag.People      = ControllerCommonFunctions.AddFirstItem(new SelectList(_employeesService.GetPersonsIds(), "Id", "Name"));
     ViewBag.Departments = ControllerCommonFunctions.AddFirstItem(new SelectList(_employeesService.GetDepartmentsIds(), "Id", "Name"));
     ViewBag.Positions   = ControllerCommonFunctions.AddFirstItem(new SelectList(_employeesService.GetPositionsIds(), "Id", "Name"));
 }