public void Delete(int id) { Ref_ProductCateory = new Model.DomainModels.DTO.EF.ProductCategory(); Ref_ProductCateory.Id = id; Ref_ProductCategoryCrud.Remove(Ref_ProductCateory); }
public void Edit(int id, string categoryName) { Ref_ProductCateory = new Model.DomainModels.DTO.EF.ProductCategory(); Ref_ProductCateory.Id = id; // Ref_ProductCateory.CategoryCode = categoryCode; Ref_ProductCateory.CategoryName = categoryName; Ref_ProductCategoryCrud.Update(Ref_ProductCateory); }
public void Save(string categoryName) { Ref_ProductCateory = new Model.DomainModels.DTO.EF.ProductCategory(); Ref_ProductCateory.CategoryName = categoryName; Ref_ProductCategoryCrud.Insert(Ref_ProductCateory); }