Exemple #1
0
 public async Task <IActionResult> DeleteConfirmed(int id)
 {
     if (CreditCardExists(id))
     {
         await _creditCardService.DeleteCreditCardById(id);
     }
     return(RedirectToAction(nameof(Index)));
 }