//[AuthorizeUser(ModuleName = "Employee", AccessLevel = Constants.Add)] public ActionResult CreateEmployee() { var entity = new EmployeeEntity(); ViewData["Department"] = _iplDepartment.ListAllByTreeView(); ViewData["DispatchWork"] = _iplDispatchWork.ListAllByTreeView(); ViewData["Position"] = _iplPosition.ListAll(); return(View(entity)); }
// GET: DispatchWork public ActionResult Index() { var department = _iplDispatchWork.ListAllByTreeView(); return(View(department)); }