예제 #1
0
        public IActionResult GetGasStation(int id)
        {
            GasStation _gasStation = _gasStationService.Get(id);

            if (_gasStation != null)
            {
                return(Ok(_gasStation));
            }
            else
            {
                return(NotFound());
            }
        }
예제 #2
0
 public Task <GasStation> Get(long id)
 {
     return(gasStationService.Get(id));
 }