示例#1
0
 public void SavePlace(PlaceData data)
 {
     throw new NotImplementedException();
 }
示例#2
0
 public void SavePlace(PlaceData data)
 {
     s_log.Info($"Saving Place Data: {data}");
     m_session.Save(data);
     m_session.Flush();
 }
        public void ReportPlace(string identifier, string dateTimeStringFormat, string placeId, string placeName)
        {
            DateTime dateTime;
            bool isValidParse;

            isValidParse = (DateTime.TryParseExact(dateTimeStringFormat,
                           DATE_TIME_FORMAT,
                           System.Globalization.CultureInfo.InvariantCulture,
                           System.Globalization.DateTimeStyles.None,
                           out dateTime));
            if (!isValidParse)
                return;

            PlaceData data = new PlaceData() { Identifier = identifier, Time = dateTime, PlaceId = placeId, PlaceName = placeName };
            m_dbService.SavePlace(data);
        }