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());
        }
Exemple #2
0
        //public JsonResult Notifications()
        //{
        //    if (Session["id"] != null)
        //    {
        //        var commonWcfClient = new CommonWCF.CommonClient();
        //        var notificationResult = commonWcfClient.GetUserNotifications(int.Parse(Session["id"].ToString()), int.Parse(Session["subid"].ToString()));
        //    }

        //    return JsonResponse();
        //}

        //[SessionExpireFilter]
        public ActionResult Start(string userId)
        {
            //For pipe9 cloud development
            if (userId != null)
            {
                var usr    = Convert.ToInt32(DecryptString(userId));
                var signUp = new SignupClient();
                var suser  = signUp.GetUserById(usr);
                Session["user"] = suser;
                var loggeduserName = suser.FirstName + " " + suser.LastName;
                ViewData["username"] = loggeduserName;
                Session["Uname"]     = loggeduserName;
                Session["emailid"]   = suser.EmailAddress;
                Session["id"]        = usr;
                Session["domain"]    = suser.EmailAddress.Split('@')[1];
                Session["subid"]     = -1;
            }
            if (Session["id"] != null)
            {
                var commonWcfClient    = new CommonWCF.CommonClient();
                var notificationResult = commonWcfClient.GetUserNotifications(int.Parse(Session["id"].ToString()), int.Parse(Session["subid"].ToString()));
                ViewBag.notificationResult = notificationResult;
            }
            var common = new CommonClient();

            byte[] userImage = common.GetUserPhoto(int.Parse(Session["id"].ToString())).Photo;

            ViewBag.userImage = userImage;



            Session["DashboardMappingId"] = null;
            Session["GivenClick"]         = null;
            return(View());
        }
Exemple #3
0
        public ActionResult YourMentees()
        {
            if (Session["id"] != null)
            {
                var commonWcfClient = new CommonWCF.CommonClient();

                commonWcfClient.CreateUpdateUserview(int.Parse(Session["id"].ToString()), "MentorPageVisit");
            }
            return(View());
        }
Exemple #4
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());
        }
Exemple #5
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());
        }
        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());
        }