public ActionResult Create(int?employeeid) { ViewBag.EmployeeID = new SelectList(_employeeService.Get(x => x.ToList()), "ID", "FullName"); ViewBag.OrganisationID = new SelectList(_organisationService.Get(x => x.ToList()), "ID", "FullName"); ViewBag.EmployeePositionOfficialID = new SelectList(_employeePositionOfficialService.Get(x => x.ToList()), "ID", "FullName"); return(View()); }
public ActionResult Index() { var employeePositionOfficials = _employeePositionOfficialService.Get(x => x.Include(e => e.Organisation).ToList()); return(View(employeePositionOfficials.ToList())); }