Exemple #1
0
 public void populateConnection(DataRow dataRow)
 {
     this.id         = Int32.Parse(dataRow["id"].ToString());
     this.user1      = comUsers.GetUserInformation(Int32.Parse(dataRow["user1"].ToString()));
     this.user2      = comUsers.GetUserInformation(Int32.Parse(dataRow["user2"].ToString()));
     this.state      = Int32.Parse(dataRow["state"].ToString());
     this.strength   = Int32.Parse(dataRow["strength"].ToString());
     this.totalScore = Int32.Parse(dataRow["totalScore"].ToString());
 }
Exemple #2
0
        // GET: /Profile/
        public ActionResult Index()
        {
            var userInfo = comUsers.GetUserInformation();

            if (userInfo == null) //If session goes down
            {
                comUsers.Logout();
                return(RedirectToAction("Login", "Account"));
            }
            ViewBag.User        = userInfo;
            ViewBag.Connections = comUsers.GetUserFriends();
            ViewBag.TableTitle  = "Friends";
            ViewBag.Friend      = "Self";
            return(View());
        }
Exemple #3
0
        public ActionResult Manage()
        {
            //ViewBag.HasLocalPassword = OAuthWebSecurity.HasLocalAccount(WebSecurity.GetUserId(User.Identity.Name));
            //ViewBag.ReturnUrl = Url.Action("Manage");

            ViewBag.Moods       = comUsers.GetMoodsSelectList();
            ViewBag.PictureLink = comUsers.GetUserInformation().picture;
            ViewBag.Tags        = comUsers.GetUserTags();
            return(View());
        }