public async Task DeleteProductAsync(Product product) { CheckOperationOnNormalProductIsCorrect(product, OperationMode.Delete); await _productDao.DeleteAsync(product).ConfigureAwait(false); }
public async Task <IResult> DeleteAsync(Product product) { await _productDao.DeleteAsync(product); return(new SuccessResult(true, ResultMessages.ProductDeleted)); }