Exemplo n.º 1
0
        public JsonResult GetMatchedUsers()
        {
            string      emailId     = GetEmailIdAndRefreshUserSession(false);
            User        currentUser = GetProperty(SessionVariableNames.Current_User) as User;
            List <User> users       = DALayer.GetMatchedUsers(string.Join(",", currentUser.Matches));

            users.ForEach(x => x.LastSeenDiff = (DateTime.UtcNow - x.LastSeen).TotalSeconds.ToString());
            return(Json(users, JsonRequestBehavior.AllowGet));
        }