public ActionResult DepartmentCorner() { var currentdepartment = _uow.Departments.GetAll(); var dvm = new DeptListViewModel { AllDepartment = currentdepartment }; return(View(dvm)); }
public ActionResult DepartmentList(int?page) { var pageSize = 10; var depts = _uow.Departments.GetAll().ToList().ToPagedList(page ?? 1, pageSize); var dcvm = new DeptListViewModel { Departments = depts }; ViewBag.Page = page; ViewBag.PageSize = pageSize; return(View(dcvm)); }