public async Task <IActionResult> DeleteConfirmed(int id) { var plane = await _planeRepository.GetByIdAsync(id); await _planeRepository.DeleteAsync(plane); return(RedirectToAction(nameof(Index))); }