예제 #1
0
        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));
        }
예제 #2
0
 public void DeleteById(int id) => _productDal.DeleteById(id);