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

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

        countries = sqlCountryProvider.GetAllCountries();
        return(countries);
    }
Exemplo n.º 5
0
    public static bool DeleteCountry(int countryID)
    {
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

        return(sqlCountryProvider.DeleteCountry(countryID));
    }
Exemplo n.º 6
0
    public static bool UpdateCountry(Country country)
    {
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

        return(sqlCountryProvider.UpdateCountry(country));
    }
Exemplo n.º 7
0
    public static int InsertCountry(Country country)
    {
        SqlCountryProvider sqlCountryProvider = new SqlCountryProvider();

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