public IActionResult AddUser() { UserInfo userInfo = new UserInfo() { Id = new Guid() }; var deptList = _deptService.GetAll(); ViewBag.DeptList = deptList; return(View(userInfo)); }
public async Task <IActionResult> Index() { IEnumerable <Department> deptList = await _deptService.GetAll(); return(View(deptList)); }