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

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