コード例 #1
0
        public async Task <IActionResult> OnGetAsync(string id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Station = await _service.GetAsync(id);

            if (Station == null)
            {
                return(NotFound());
            }

            return(Page());
        }
コード例 #2
0
        public async Task <Result <StationDto> > Get(int id)
        {
            var res = await _stationService.GetAsync(id);

            return(Result <StationDto> .Success(data : res));
        }