private async Task DeleteProductAsync(ProductDto product) { var confirmMessage = L["ProductDeletionConfirmationMessage", product.Title]; if (!await Message.Confirm(confirmMessage)) { return; } await ProductAppService.DeleteAsync(product.Id); await GetProductsAsync(); }
public async Task <JsonResult> Delete(Guid id) { await _productAppService.DeleteAsync(id); return(Json(ResultBase.Success())); }