예제 #1
0
        public IHttpActionResult Get(int id)
        {
            var bus = db.GetBusById(id);

            if (bus == null)
            {
                return(NotFound());//returns 404
            }

            return(Ok(bus));//returns 200 with dataS
        }