Exemplo n.º 1
0
        public async Task <IActionResult> DeleteConfirmed(Guid id)
        {
            await _saleService.DeleteSaleAsync(id);

            return(RedirectToAction(nameof(Index)));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> OnPostAsync()
        {
            await saleService.DeleteSaleAsync(Sale);

            return(RedirectToPage("GetAllSales"));
        }