Ejemplo n.º 1
0
        public Country GetCountry(int countryId)
        {
            Country objCountry = new Country();

            objCountry = CountyrDB.GetCountry(countryId);
            return(objCountry);
        }
Ejemplo n.º 2
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;
     }
 }
Ejemplo n.º 3
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;
     }
 }
Ejemplo n.º 4
0
 public DataSet GetActiveCountries()
 {
     return(CountyrDB.GetCountries((int)ActiveStatus.Active));
 }
Ejemplo n.º 5
0
        public void DeletCountry(int countryId)
        {
            Country objCountry = new Country(countryId, "", 0, 0, false);

            CountyrDB.ManageCountry(objCountry, ActionType.Delete);
        }
Ejemplo n.º 6
0
 public void UpdateCountry(Country objCountry)
 {
     objCountry.Validate();
     CountyrDB.ManageCountry(objCountry, ActionType.Edit);
 }
Ejemplo n.º 7
0
 public void InsertCountry(Country objCountry)
 {
     objCountry.Validate();
     CountyrDB.ManageCountry(objCountry, ActionType.Add);
 }