public static List <Supplier> ListOfSupplier(int page, int pageSize, string searchValue, out int rowCount) { if (page < 1) { page = 1; } rowCount = SupplierDB.Count(searchValue); return(SupplierDB.List(page, pageSize, searchValue)); }
/// <summary> /// Đếm số Supplier /// </summary> /// <param name="searchValue"></param> /// <returns></returns> public static int Supplier_Count(string searchValue) { return(SupplierDB.Count(searchValue)); }
public static int Supplier_Count(string searchValue, string country) { return(SupplierDB.Count(searchValue, country)); }