public async Task <IActionResult> DeleteConfirmed(int id) { var election = await _electionService.GetElectionByIdAsync(id); await _electionService.DeleteElectionAsync(election); return(RedirectToAction(nameof(ElectionsList))); }
public async Task <IActionResult> DeleteConfirmed(int id) { var election = await _electionService.GetElectionByIdAsync(id); await _electionService.DeleteElectionAsync(election); return(RedirectToAction(nameof(ElectionsList))); }