public IEnumerable <VehicleModel> LotInfo(int i) { var list = dh.LotInfo(i); List <VehicleModel> ret = new List <VehicleModel>(); foreach (var item in list) { ret.Add(WebMapper.DomainToWeb(item)); } return(ret); }
public IEnumerable <VehicleModel> GetVehicles(VehicleModel vehicle, double lat, double lon) { VehicleDTO v = WebMapper.WebToDomain(vehicle); List <VehicleModel> ret = new List <VehicleModel>(); var list = dh.GetVehicles(v, vehicle.distance, lat, lon); foreach (var item in list) { ret.Add(WebMapper.DomainToWeb(item)); } return(ret); }