public ActionResult Index(int page = 1, string searchValue = "", string country = "") { WebUserData userData = User.GetUserData(); var model = new Models.EmployeePaginationResult() { Page = page, PageSize = AppSettings.DefaultPageSize, RowCount = HumanResourceBLL.Employee_Count(searchValue, country), Data = HumanResourceBLL.Employees_List(page, AppSettings.DefaultPageSize, searchValue, country), searchValue = searchValue, Country = country }; return(View(model)); }
public static List <SelectListItem> Employee(bool allowSelectAll = true) { List <SelectListItem> list = new List <SelectListItem>(); if (allowSelectAll) { list.Add(new SelectListItem() { Value = "0", Text = "-- All Employees --" }); } foreach (var employee in HumanResourceBLL.Employees_List(1, HumanResourceBLL.Employee_Count("", ""), "", "")) { list.Add(new SelectListItem() { Value = employee.EmployeeID.ToString(), Text = employee.LastName + " " + employee.FirstName }); } return(list); }