示例#1
0
        public async Task <IActionResult> Clear()
        {
            await purchasesService.Delete(BuyStatus.AwaitingPayment);

            return(RedirectToAction(nameof(Index)));
        }
示例#2
0
        public async Task DeleteConfirmed(int id)
        {
            var value = await purchasesService.GetPurchase(id);

            await purchasesService.Delete(id);
        }