public async Task <IActionResult> DeleteConfirmed(int id) { try { await _customers.DeleteAsync(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }