/// <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 = CountryDB.Count(searchValue); return(CountryDB.List(page, pageSize, searchValue)); }