Пример #1
0
        public IHttpActionResult Get(int id)
        {
            var bike = _BikesService.GetBike(id);

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

            return(Ok(bike));
        }
Пример #2
0
 public Bike Get(int id)
 {
     return(Service.GetBike(id));
 }