コード例 #1
0
 public async Task DeleteProductAsync(Product product)
 {
     CheckOperationOnNormalProductIsCorrect(product, OperationMode.Delete);
     await _productDao.DeleteAsync(product).ConfigureAwait(false);
 }
コード例 #2
0
        public async Task <IResult> DeleteAsync(Product product)
        {
            await _productDao.DeleteAsync(product);

            return(new SuccessResult(true, ResultMessages.ProductDeleted));
        }