/// <summary> /// Gets the server date time. /// </summary> /// <returns></returns> public static DateTime GetServerDateTime() { var si = new ServerInfoRepository().GetServerInfo(); return si.Now; }
/// <summary> /// Gets the local session. /// </summary> /// <returns></returns> public static string GetLocalSession() { // Get ServerDate var si = new ServerInfoRepository().GetServerInfo(); return GetLocalIpAddress() + si.Now.ToString("yyyyMMddHHmmss"); }