예제 #1
0
 public static Country GetCountryByID(int id)
 {
     Country country = new Country();
     SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();
     country = sqlCountryProvider.GetCountryByID(id);
     return country;
 }
예제 #2
0
 public static List<Country> GetAllCountries()
 {
     List<Country> countries = new List<Country>();
     SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();
     countries = sqlCountryProvider.GetAllCountries();
     return countries;
 }
예제 #3
0
    public static Country GetCountryByID(int id)
    {
        Country            country            = new Country();
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

        country = sqlCountryProvider.GetCountryByID(id);
        return(country);
    }
예제 #4
0
    public static List <Country> GetAllCountries()
    {
        List <Country>     countries          = new List <Country>();
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

        countries = sqlCountryProvider.GetAllCountries();
        return(countries);
    }
예제 #5
0
    public static bool DeleteCountry(int countryID)
    {
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

        return(sqlCountryProvider.DeleteCountry(countryID));
    }
예제 #6
0
    public static bool UpdateCountry(Country country)
    {
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

        return(sqlCountryProvider.UpdateCountry(country));
    }
예제 #7
0
    public static int InsertCountry(Country country)
    {
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

        return(sqlCountryProvider.InsertCountry(country));
    }
예제 #8
0
 public static bool UpdateCountry(Country country)
 {
     SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();
     return sqlCountryProvider.UpdateCountry(country);
 }
예제 #9
0
 public static int InsertCountry(Country country)
 {
     SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();
     return sqlCountryProvider.InsertCountry(country);
 }
예제 #10
0
 public static bool DeleteCountry(int countryID)
 {
     SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();
     return sqlCountryProvider.DeleteCountry(countryID);
 }