public async Task <ActionResult <Army> > DeleteArmy(int id) { var army = await _armyService.GetOne(id); if (army == null) { return(NotFound()); } await _armyService.Delete(army); return(army); }
public async Task <IActionResult> DeleteConfirmed(int id) { await _armyService.Delete(id); return(RedirectToAction(nameof(Index))); }