[Route("[controller]/[action]/{id:int}")] //DEBUG ручное указание route дл¤ данного метода public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var station = await _stationDtoAcessLayer.GetStationById(id.Value); if (station == null) { return(NotFound()); } var stationVm = _mapper.Map <StationViewModel>(station); return(View(stationVm)); }