public void CreateCategory(Category category) { category.ViewFlag = true; _categoryRepository.Add(category); }
public void EditCategory(Category category) { category.ViewFlag = true; _categoryRepository.Update(category); }
public bool IsCategoryExist(Category category) { var temp = GetCategory(category.Name); if (temp != null) { return true; } return false; }