public void UpdateCustom(ProductCategoryVM model) { var pCategory = Find(model.ProductCategoryID); pCategory.ProductCategoryName = model.ProductCategoryName; Update(pCategory); }
public void AddCustom(ProductCategoryVM model) { Add(new ProductCategory { ProductCategoryName = model.ProductCategoryName }); }