ActionSelectionLogic.APIs.CarsController.GetCar C# (CSharp) Method

GetCar() public method

public GetCar ( int id ) : Car
id int
return ActionSelectionLogic.Models.Car
        public Car GetCar(int id)
        {
            var carTuple = _carsCtx.GetSingle(id);

            if (!carTuple.Item1) {

                var response = Request.CreateResponse(HttpStatusCode.NotFound);
                throw new HttpResponseException(response);
            }

            return carTuple.Item2;
        }
CarsController