Пример #1
0
 public string GetRelatedUserId(SessionId sessionId)
 {
     using (ServerDataContext context = new ServerDataContext())
     {
         ActiveSession session = context.GetSession(sessionId);
         return(session.User.Id.ToString().ToUpper());
     }
 }
Пример #2
0
 public UserData GetRelatedUserInfo(SessionId sessionId)
 {
     using (ServerDataContext context = new ServerDataContext())
     {
         ActiveSession session = context.GetSession(sessionId);
         return(context.CreateUserData(session.User));
     }
 }
Пример #3
0
 public string GetRelatedUserName(SessionId sessionId)
 {
     using (ServerDataContext context = new ServerDataContext())
     {
         ActiveSession session = context.GetSession(sessionId);
         return(session.User.Name);
     }
 }