Пример #1
0
        public ActionResult ShowAll(int Skipnum)
        {
            ShowAllViewModel showvm = new ShowAllViewModel();

            showvm.SkipNumber    = Skipnum;
            showvm.EmployeesList = _service.GetAllEmployees(Skipnum);
            showvm.Count         = _service.GetTotalEmployeeCount();
            return(View(showvm));
        }
Пример #2
0
 public ActionResult ShowAll(ShowAllViewModel showvm)
 {
     showvm.EmployeesList = _service.SearchEmployee(showvm.SearchName);
     showvm.Count         = 1;
     return(View(showvm));
 }