public LoggedInStatusViewModel Status(LoggedInStatusRequest request)
 {
     var status = _session[CurrentLoginStatus.Key] as CurrentLoginStatus;
     return new LoggedInStatusViewModel
         {
             IsLoggedIn = status != null,
             UserName = request.User_Agent + "--" + (status == null ? "" : status.UserName)
         };
 }
Exemple #2
0
        public LoggedInStatusViewModel Status(LoggedInStatusRequest request)
        {
            var status = _session[CurrentLoginStatus.Key] as CurrentLoginStatus;

            return(new LoggedInStatusViewModel
            {
                IsLoggedIn = status != null,
                UserName = request.User_Agent + "--" + (status == null ? "" : status.UserName)
            });
        }