Пример #1
0
        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();
        }
Пример #2
0
        public async Task <JsonResult> Delete(Guid id)
        {
            await _productAppService.DeleteAsync(id);

            return(Json(ResultBase.Success()));
        }