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; } }
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; } }
public void DeletCountry(int countryId) { Country objCountry = new Country(countryId, "", 0, 0, false); CountyrDB.ManageCountry(objCountry, ActionType.Delete); }
public void UpdateCountry(Country objCountry) { objCountry.Validate(); CountyrDB.ManageCountry(objCountry, ActionType.Edit); }
public void InsertCountry(Country objCountry) { objCountry.Validate(); CountyrDB.ManageCountry(objCountry, ActionType.Add); }