Exemplo n.º 1
0
        public ActionResult DepartmentCorner()
        {
            var currentdepartment = _uow.Departments.GetAll();

            var dvm = new DeptListViewModel
            {
                AllDepartment = currentdepartment
            };

            return(View(dvm));
        }
Exemplo n.º 2
0
        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));
        }