public IHttpActionResult GetById(int id) { var car = carDal.GetById(id); if (car == null) { return(NotFound()); } return(Ok(car)); }