public VehicleModel GetById(int id) { var vehicle = ServiceAgent.Vehicle.GetById(id); if (vehicle == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return VehicleModel.FromServiceEntity(vehicle); }
public VehicleModel GetById(int id) { var vehicle = ServiceAgent.Vehicle.GetById(id); if (vehicle == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return VehicleModel.FromServiceEntity(vehicle); }