public MapPointBase GetMapPointBase() { MapPointBase res = new MapPointBase(); res.CreatedByUserID = CreatedByUserID; res.CreatedOnDate = CreatedOnDate; res.LastModifiedByUserID = LastModifiedByUserID; res.LastModifiedOnDate = LastModifiedOnDate; res.MapPointId = MapPointId; res.ModuleId = ModuleId; res.Latitude = Latitude; res.Longitude = Longitude; res.Message = Message; return(res); }
public void ReadMapPointBase(MapPointBase mapPoint) { if (mapPoint.MapPointId > -1) { MapPointId = mapPoint.MapPointId; } if (mapPoint.ModuleId > -1) { ModuleId = mapPoint.ModuleId; } Latitude = mapPoint.Latitude; Longitude = mapPoint.Longitude; if (!String.IsNullOrEmpty(mapPoint.Message)) { Message = mapPoint.Message; } }