コード例 #1
0
        public ProfileIdVm()
        {
            var connect = new ConnectService();

            PendingIds  = connect.GetConnectReqIds(ConnectStatusType.RequestSend);
            AcceptedIds = connect.GetConnectReqIds(ConnectStatusType.Accepted);
            RejectedIds = connect.GetConnectReqIds(ConnectStatusType.Rejected);
            PendingIds  = RejectedIds.Concat(PendingIds).ToList();
        }
コード例 #2
0
        protected void FillConnections()
        {
            var connect = new ConnectService();

            PendingIds  = connect.GetConnectReqIds(ConnectStatusType.RequestSend);
            AcceptedIds = connect.GetConnectReqIds(ConnectStatusType.Accepted);
            RejectedIds = connect.GetConnectReqIds(ConnectStatusType.Rejected);
            PendingIds  = RejectedIds.Concat(PendingIds).ToList();
        }
コード例 #3
0
        public override void FillMasterList()
        {
            var connect = new ConnectService();

            PendingIds  = connect.GetConnectReqIds(ConnectStatusType.RequestSend);
            AcceptedIds = connect.GetConnectReqIds(ConnectStatusType.Accepted);
            RejectedIds = connect.GetConnectReqIds(ConnectStatusType.Rejected);
            PendingIds  = RejectedIds.Concat(PendingIds).ToList();

            var temp = _db.Circles.Where(c => UserSession.CurrentUserId == c.UserId)
                       .ToList();
            var myConn = _db.Users.Where(u => AcceptedIds.Contains(u.UserId)).ToList();

            temp.Insert(0, new Circle
            {
                Name    = "My Connections",
                Members = myConn
            });
            MasterList = temp;
        }