private static DateTime GetLastVisitDate(ReturnVisitDataItem r)
 {
     DateTime lv = SqlCeConstants.DateTimeMinValue;
     try {
         RvPreviousVisitData[] x = RvPreviousVisitsDataInterface.GetPreviousVisits(r.ItemId, SortOrder.DateNewestToOldest);
         if (x.Any()) { lv = x.First().Date; }
     } catch (Exception) { }
     return lv;
 }
 internal static ReturnVisitData Copy(ReturnVisitDataItem newRv)
 {
     return new ReturnVisitData()
     {
         ItemId = newRv.ItemId,
         AddressOne = newRv.AddressOne,
         AddressTwo = newRv.AddressTwo,
         Age = newRv.Age,
         City = newRv.City,
         Country = newRv.Country,
         DateCreated = newRv.DateCreated,
         FullName = newRv.FullName,
         Gender = newRv.Gender,
         OtherNotes = newRv.OtherNotes,
         PhysicalDescription = newRv.PhysicalDescription,
         PostalCode = newRv.PostalCode,
         StateProvince = newRv.StateProvince,
         ImageSrc = newRv.ImageSrc,
         PhoneNumber = newRv.PhoneNumber,
         Latitude = newRv.Latitude ?? 0.0,
         Longitude = newRv.Longitude ?? 0.0,
         LastVisitDate = newRv.LastVisitDate ?? SqlCeConstants.DateTimeMinValue
     };
 }