public async Task <IActionResult> DeleteConfirmed(int id) { _actionFactory.DeleteAction(id); return(RedirectToAction(nameof(Index))); }