public ActionResult Delete(int CardId) { var crd = deckService.GetCard(CardId); deckService.DeleteCard(CardId); return(RedirectToAction(nameof(Index), new { DeckId = crd.DeckId })); }