/*Het Phan Loai Mat Hang*/ /* phan customer */ /// <summary> /// Lấy danh sách khách hàng. (Tìm kiếm , phân trang) /// </summary> /// <param name="page"></param> /// <param name="pageSize"></param> /// <param name="searchValue"></param> /// <param name="rowCount">số dòng có trong csdl</param> /// <returns></returns> public static List <Customer> ListCustomers(int page, int pageSize, string searchValue, out int rowCount) { rowCount = CustomerDB.Count(searchValue); return(CustomerDB.List(page, pageSize, searchValue)); }
public static List <Customer> ListOfCustomers(string country, int page, int pageSize, string searchValue, out int rowCount) { if (page < 1) { page = 1; } if (pageSize < 0) { pageSize = 20; } rowCount = CustomerDB.Count(searchValue, country); return(CustomerDB.List(country, page, pageSize, searchValue)); }