public bool Delete(int id) { var deleteObject = _productTypeDal.GetOne(x => x.id == id); if (deleteObject != null) { bool result = _productTypeDal.Delete(deleteObject); if (result) { return(true); } return(false); } return(false); }
public void Delete(ProductType productType) { _productTypeDal.Delete(productType); }
public async Task <IResult> Delete(ProductType productType) { await _productTypeDal.Delete(productType); return(new SuccessResult(Messages.CategoryDeleted)); }