/// <summary> /// Danh sách nhà cung cấp (phân trang, tìm kiếm) /// </summary> /// <param name="page"></param> /// <param name="pageSize"></param> /// <param name="searchValue"></param> /// <param name="rowCount">cho bieest</param> /// <returns></returns> public static List <Supplier> ListSuppliers(int page, int pageSize, string searchValue, out int rowCount) { rowCount = SupplierDB.Count(searchValue); return(SupplierDB.List(page, pageSize, searchValue)); }
public static List <Supplier> ListOfSuppliers(int page, int pageSize, string searchValue, out int rowCount) { if (page < 1) { page = 1; } if (pageSize < 0) { pageSize = 20; } rowCount = SupplierDB.Count(searchValue); return(SupplierDB.List(page, pageSize, searchValue)); }