public async Task <IActionResult> DeleteConfirmed(int id) { var stationDeleting = await _stationDtoAcessLayer.GetStationById(id); if (stationDeleting == null) { return(NotFound()); } var result = await _stationDtoAcessLayer.RemoveStationById(id); return(result ? RedirectToAction("Index") : null); //TODO: null заменить на страницу с ошибками. }