예제 #1
0
        public HttpResponseMessage CreateCategory(Category category)
        {
            var item = _category.GetFirstOrDefault(z => z.PublicKey == category.PublicKey);
            if (item != null) return ErrorResult("key");

            category.Id = Guid.NewGuid();
            _category.CreateItem(category);
            return SuccessResult();
        }
예제 #2
0
 partial void DeleteCategory(Category instance);
예제 #3
0
 partial void UpdateCategory(Category instance);
예제 #4
0
 partial void InsertCategory(Category instance);
예제 #5
0
 public HttpResponseMessage UpdateCategory(Category category)
 {
     _category.UpdateCategory(category);
     return SuccessResult();
 }