Пример #1
0
        public ActionResult Sync(int?poeid, int?ftype)
        {
            Session["fbPoe"]              = null;
            Session["ftype"]              = null;
            Session["MoreClick"]          = null;
            Session["DashboardMappingId"] = null;
            if (poeid != null)
            {
                Session["fbPoe"] = poeid;
            }
            if (ftype != null)
            {
                Session["ftype"] = ftype;
            }

            if (Session["id"] != null)
            {
                var commonWcfClient = new CommonWCF.CommonClient();

                commonWcfClient.CreateUpdateUserview(int.Parse(Session["id"].ToString()), "SyncPageVisit");
                commonWcfClient.UpdateManagerSync(int.Parse(Session["id"].ToString()));
            }

            return(View());
        }
Пример #2
0
        public ActionResult YourMentees()
        {
            if (Session["id"] != null)
            {
                var commonWcfClient = new CommonWCF.CommonClient();

                commonWcfClient.CreateUpdateUserview(int.Parse(Session["id"].ToString()), "MentorPageVisit");
            }
            return(View());
        }
Пример #3
0
        public ActionResult Result()
        {
            Session["CompletedFeedback"] = null;
            if (Session["id"] != null)
            {
                var commonWcfClient = new CommonWCF.CommonClient();

                commonWcfClient.CreateUpdateUserview(int.Parse(Session["id"].ToString()), "ResultPageVisit");
            }
            return(View());
        }
Пример #4
0
        public ActionResult Standing()
        {
            // Session["role"] = null;
            Session["tileclicking"] = null;

            if (Session["id"] != null)
            {
                var commonWcfClient = new CommonWCF.CommonClient();

                commonWcfClient.CreateUpdateUserview(int.Parse(Session["id"].ToString()), "StandingPageVisit");
            }

            return(View());
        }
Пример #5
0
        public ActionResult Index(int?id)
        {
            id = id ?? 0;
            if (Session["subid"] != null && Session["id"] != null)
            {
                var commonWcfClient = new CommonWCF.CommonClient();
                var returnValue     = commonWcfClient.GetSubscribedUserWall(int.Parse(Session["id"].ToString()),
                                                                            int.Parse(Session["subid"].ToString())).ToList();
                // to insert data for user views
                commonWcfClient.CreateUpdateUserview(int.Parse(Session["id"].ToString()), "WallPageVisit");
                var myactivites =
                    commonWcfClient.GetMyActivities(int.Parse(Session["id"].ToString()),
                                                    int.Parse(Session["subid"].ToString()), (int)id).ToList();

                var filteredActivites =
                    myactivites.Where(item => returnValue.Any(category => category.UserId == int.Parse(item.From)));
                //Session["subid"] = -1;
                ViewBag.MyActivities = filteredActivites.ToArray();

                ViewBag.SourceId = id;
            }
            return(View());
        }