예제 #1
0
        public void Delete(int id)
        {
            Ref_ProductCateory    = new Model.DomainModels.DTO.EF.ProductCategory();
            Ref_ProductCateory.Id = id;

            Ref_ProductCategoryCrud.Remove(Ref_ProductCateory);
        }
예제 #2
0
 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);
 }
예제 #3
0
 public void Save(string categoryName)
 {
     Ref_ProductCateory = new Model.DomainModels.DTO.EF.ProductCategory();
     Ref_ProductCateory.CategoryName = categoryName;
     Ref_ProductCategoryCrud.Insert(Ref_ProductCateory);
 }