Ejemplo n.º 1
0
 public static List <Employee> ListOfEmployee(int page, int pageSize, string searchValue, out int rowCount, string country)
 {
     if (page < 1)
     {
         page = 1;
     }
     rowCount = EmployeeDB.Count(searchValue, country);
     return(EmployeeDB.List(page, pageSize, searchValue, country));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Danh sách Employees
 /// </summary>
 /// <param name="page">Số trang</param>
 /// <param name="pageSize">Kích cở trang</param>
 /// <param name="searchValue">Giá trị tìm kiếm</param>
 /// <param name="rowCount">Số bản ghi ứng với searchValue</param>
 /// <returns></returns>
 public static List <Employee> ListOfEmployees(int page, int pageSize, string searchValue, out int rowCount)
 {
     if (page < 1)
     {
         page = 1;
     }
     if (pageSize < 0)
     {
         pageSize = 20;
     }
     rowCount = EmployeeDB.Count(searchValue);
     return(EmployeeDB.List(page, pageSize, searchValue));
 }