Example #1
0
        public IHttpActionResult GetById(int id)
        {
            var car = carDal.GetById(id);

            if (car == null)
            {
                return(NotFound());
            }
            return(Ok(car));
        }