public void EditCategory(Category category) { var original = this.FindCategory(category.Id); original.CategoryName = category.CategoryName; }
public void CreateCategory(Category category) { _repo.Add<Category>(category); _repo.SaveChanges(); }
public void EditCategory(Category category) { var original = this.FindCategory(category.Id); original.CategoryName = category.CategoryName; }
public void CreateCategory(Category category) { _repo.Add<Category>(category); _repo.SaveChanges(); }