コード例 #1
0
 // Khai báo các chức năng xử lý nghiệp vụ
 /// <summary>
 /// Hiển thị suppliers
 /// </summary>
 /// <param name="page"></param>
 /// <param name="pageSize"></param>
 /// <param name="searchValue"></param>
 /// <param name="rowCount"></param>
 /// <returns></returns>
 public static List <Country> ListOfCountries(int page, int pageSize, string searchValue, out int rowCount)
 {
     if (page < 1)
     {
         page = 1;
     }
     if (pageSize < 0)
     {
         pageSize = 20;
     }
     rowCount = CountrieDB.Count(searchValue);
     return(CountrieDB.List(page, pageSize, searchValue));
 }
コード例 #2
0
 public static List <Country> ListOfCountries()
 {
     return(CountrieDB.List(1, -1, ""));
 }
コード例 #3
0
 //country
 public static List <Countrie> ListOfCountries()
 {
     return(CountrieDB.List());
 }