public ActionResult ShowAll(int Skipnum) { ShowAllViewModel showvm = new ShowAllViewModel(); showvm.SkipNumber = Skipnum; showvm.EmployeesList = _service.GetAllEmployees(Skipnum); showvm.Count = _service.GetTotalEmployeeCount(); return(View(showvm)); }
public ActionResult ShowAll(ShowAllViewModel showvm) { showvm.EmployeesList = _service.SearchEmployee(showvm.SearchName); showvm.Count = 1; return(View(showvm)); }