예제 #1
0
 public void UpdateCountry(int countyId, string countryName, int zipCodeStart, int zipCodeEnd, bool isActive)
 {
     try
     {
         Country objCountry = new Country(countyId, countryName, zipCodeStart, zipCodeEnd, isActive);
         objCountry.Validate();
         CountyrDB.ManageCountry(objCountry, ActionType.Edit);
     }
     catch (System.Data.SqlClient.SqlException)
     {
         throw;
     }
 }
예제 #2
0
 public void InsertCountry(string CountryName, long ZipCodeStart, long ZipCodeEnd, bool IsActive)
 {
     try
     {
         Country objCountry = new Country(-1, CountryName, ZipCodeStart, ZipCodeEnd, IsActive);
         objCountry.Validate();
         CountyrDB.ManageCountry(objCountry, ActionType.Add);
     }
     catch (System.Data.SqlClient.SqlException)
     {
         throw;
     }
 }
예제 #3
0
        public void DeletCountry(int countryId)
        {
            Country objCountry = new Country(countryId, "", 0, 0, false);

            CountyrDB.ManageCountry(objCountry, ActionType.Delete);
        }
예제 #4
0
 public void UpdateCountry(Country objCountry)
 {
     objCountry.Validate();
     CountyrDB.ManageCountry(objCountry, ActionType.Edit);
 }
예제 #5
0
 public void InsertCountry(Country objCountry)
 {
     objCountry.Validate();
     CountyrDB.ManageCountry(objCountry, ActionType.Add);
 }