Example #1
0
        /// <summary>
        /// 删除指定分类对象
        /// 未涉及到 GoodsCategory的部分逻辑尚未实现
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        public bool Delete(Category category)
        {
            // category 的删除还涉及到 GoodsCategory的删除

            // 稍后再写这部分的逻辑

            return(_categoryDAL.Delete(category));
        }
Example #2
0
        public IActionResult Remove(int id)
        {
            bool result = _CategoryDal.Delete(id);

            if (result)
            {
                return(Ok("Silme işlemi başarılı!"));
            }
            else
            {
                return(BadRequest("Güncelleme işlemi başarısız!"));
            }
        }
Example #3
0
 /// <summary>
 /// Xóa loại hàng
 /// </summary>
 /// <param name="categoryID"></param>
 /// <returns></returns>
 public static bool DeleteCategory(int categoryID)
 {
     return CategoryDB.Delete(categoryID);
 }
Example #4
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public void Delete(int id)
 {
     dal.Delete(id);
 }
Example #5
0
        public void Remove(Category entity)
        {
            var data = _category.GetById(a => a.ID == entity.ID);

            _category.Delete(data);
        }
Example #6
0
 public void Delete(Category parameter)
 {
     _categorydal.Delete(parameter);
 }
 public void CategoryDelete(Category category)
 {
     _categorydal.Delete(category);
 }
Example #8
0
 public IResult Delete(Category category)
 {
     //Business codes
     _categoryDal.Delete(category);
     return(new SuccessResult(message: Messages.CategoryDeleted));
 }
Example #9
0
 public void Delete(Category entity)
 {
     _dal.Delete(entity);
 }
Example #10
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="categoryIDs"></param>
 /// <returns></returns>
 public static int DeleteCategories(int[] categoryIDs)
 {
     return(CategoryDB.Delete(categoryIDs));
 }
Example #11
0
 public void Delete(Category category)
 {
     _categoryDAL.Delete(category);
 }
Example #12
0
 public void DeleteCategory(Category category)
 {
     _categoryDal.Delete(category);
 }
        public bool Delete(int entityID)
        {
            Category category = _categoryDAL.Get(a => a.CategoryID == entityID);

            return(_categoryDAL.Delete(category) > 0);
        }
 public IResult Delete(Category category)
 {
     _categoryDAL.Delete(category);
     return(new SuccessResult());
 }
Example #15
0
 /// <summary>
 /// Xóa loại hàng hóa
 /// </summary>
 /// <param name="categoryId"></param>
 /// <returns></returns>
 public static bool DeleteCategory(int categoryId)
 {
     return(CategoryDB.Delete(categoryId));
 }
Example #16
0
        public IResult Delete(Category category)
        {
            _categoryDal.Delete(category);

            return(new SuccessResult(Messages.CategoryDeleted));
        }
 public void DeleteCategory(Category model)
 {
     _categoryDAL.Delete(model);
 }
 public bool Delete(Category model)
 {
     return(_categoryDAL.Delete(model) > 0);
 }
Example #19
0
 public ResponseModel <Category> Delete(Category entity)
 {
     responseModel.Success = _categoryDAL.Delete(entity);
     responseModel.Message = "Kategori Silinid";
     return(responseModel);
 }
Example #20
0
        public bool DeleteByID(int entityID)
        {
            Category cat = GetByID(entityID);

            return(_categoryDAL.Delete(cat) > 0);
        }
 public void Delete(Categories entity)
 {
     _CategoryDAL.Delete(entity);
 }
 public void Delete(Category entity)
 {
     _categoryDAL.Delete(entity);
 }
Example #23
0
 public bool Delete(Category entity)
 {
     return(_categoryDAL.Delete(entity) > 0);
 }
Example #24
0
 public async Task <long> Delete(long id)
 {
     return(await _categoryDAL.Delete(id));
 }