public QueryResultResource <VehicleResource> GetVehicles(VehicleQueryResource filterResource) { var filter = Mapper.Map <VehicleQuery>(filterResource); var vehicles = _vehicles.GetAll(filter); return(Mapper.Map <QueryResultResource <VehicleResource> >(vehicles)); }