/// <summary> /// 删除指定分类对象 /// 未涉及到 GoodsCategory的部分逻辑尚未实现 /// </summary> /// <param name="category"></param> /// <returns></returns> public bool Delete(Category category) { // category 的删除还涉及到 GoodsCategory的删除 // 稍后再写这部分的逻辑 return(_categoryDAL.Delete(category)); }
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!")); } }
/// <summary> /// Xóa loại hàng /// </summary> /// <param name="categoryID"></param> /// <returns></returns> public static bool DeleteCategory(int categoryID) { return CategoryDB.Delete(categoryID); }
/// <summary> /// 删除一条数据 /// </summary> public void Delete(int id) { dal.Delete(id); }
public void Remove(Category entity) { var data = _category.GetById(a => a.ID == entity.ID); _category.Delete(data); }
public void Delete(Category parameter) { _categorydal.Delete(parameter); }
public void CategoryDelete(Category category) { _categorydal.Delete(category); }
public IResult Delete(Category category) { //Business codes _categoryDal.Delete(category); return(new SuccessResult(message: Messages.CategoryDeleted)); }
public void Delete(Category entity) { _dal.Delete(entity); }
/// <summary> /// /// </summary> /// <param name="categoryIDs"></param> /// <returns></returns> public static int DeleteCategories(int[] categoryIDs) { return(CategoryDB.Delete(categoryIDs)); }
public void Delete(Category category) { _categoryDAL.Delete(category); }
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()); }
/// <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)); }
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); }
public ResponseModel <Category> Delete(Category entity) { responseModel.Success = _categoryDAL.Delete(entity); responseModel.Message = "Kategori Silinid"; return(responseModel); }
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); }
public bool Delete(Category entity) { return(_categoryDAL.Delete(entity) > 0); }
public async Task <long> Delete(long id) { return(await _categoryDAL.Delete(id)); }