public async Task <IResult> Delete(Product product) { // await _productCategoryService.DeleteByProductId(product.Id); // _commentService.DeleteByPostId(post.Id); await _productDal.DeleteById(w => w.Id == product.Id); return(new SuccessResult(Messages.ProductDeleted)); }
public void DeleteById(int id) => _productDal.DeleteById(id);