示例#1
0
 public void CreateCategory(Category category)
 {
     category.ViewFlag = true;
     _categoryRepository.Add(category);
 }
示例#2
0
 public void EditCategory(Category category)
 {
     category.ViewFlag = true;
     _categoryRepository.Update(category);
 }
示例#3
0
        public bool IsCategoryExist(Category category)
        {
            var temp = GetCategory(category.Name);

            if (temp != null)
            {
                return true;
            }

            return false;
        }