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(); }
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(); }
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; }