public async Task <IActionResult> Clear() { await purchasesService.Delete(BuyStatus.AwaitingPayment); return(RedirectToAction(nameof(Index))); }
public async Task DeleteConfirmed(int id) { var value = await purchasesService.GetPurchase(id); await purchasesService.Delete(id); }