public void Insert(string CountryName, int?CompanyGroup) { PricerCountryName item = new PricerCountryName(); item.CountryName = CountryName; item.CompanyGroup = CompanyGroup; item.Save(UserName); }
public void Update(int CountryId, string CountryName, int?CompanyGroup) { PricerCountryName item = new PricerCountryName(); item.MarkOld(); item.IsLoaded = true; item.CountryId = CountryId; item.CountryName = CountryName; item.CompanyGroup = CompanyGroup; item.Save(UserName); }
public bool Destroy(object CountryId) { return(PricerCountryName.Destroy(CountryId) == 1); }
public bool Delete(object CountryId) { return(PricerCountryName.Delete(CountryId) == 1); }