public List <CVehicleInfo> GetMatchingVRMFromService(string vrm) { List <CVehicleInfo> cvehicleInfoList = new List <CVehicleInfo>(); try { var result = _movementService.SearchVehicleMovements(vrm); foreach (var item in result) { cvehicleInfoList.Add(new CVehicleInfo() { CarDataId = item.ID, overviewImageLocation = item.OverviewImage.ToString(), plateImageLocation = item.PlateImage.ToString(), VRM = item.VRN.ToString(), inwardTime = item.TimeStamp.ToString() }); } } catch (Exception ex) { Log.Write(ex); } return(cvehicleInfoList); }