public async Task <IActionResult> OnGetAsync(string id) { if (id == null) { return(NotFound()); } Station = await _service.GetAsync(id); if (Station == null) { return(NotFound()); } return(Page()); }
public async Task <Result <StationDto> > Get(int id) { var res = await _stationService.GetAsync(id); return(Result <StationDto> .Success(data : res)); }