Ejemplo n.º 1
0
 public ActionResult getIsInterestedProfile(string ID)
 {
     bool isInterestedProfile = false;
     int intInterestedProfile = 0; // 0 -> Not an interested Profile; 1 -> is an interested profile
     Mugurtham.Core.Login.LoggedInUser objLoggedIn = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"];
     Mugurtham.Core.ProfileInterested.ProfileInterestedCore objProfileInterestedCore = new Core.ProfileInterested.ProfileInterestedCore();
     using (objProfileInterestedCore as IDisposable)
         isInterestedProfile = objProfileInterestedCore.isInterestedProfile(objLoggedIn.LoginID, ID);
     objProfileInterestedCore = null;
     if (isInterestedProfile)
         intInterestedProfile = 1;
     // Try to change the below implementation as it is possible of JSON HiJacking -- Anand J
     return this.Json(intInterestedProfile, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 2
0
        public ActionResult getIsInterestedProfile(string ID)
        {
            bool isInterestedProfile  = false;
            int  intInterestedProfile = 0; // 0 -> Not an interested Profile; 1 -> is an interested profile

            Mugurtham.Core.Login.LoggedInUser objLoggedIn = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"];
            Mugurtham.Core.ProfileInterested.ProfileInterestedCore objProfileInterestedCore = new Core.ProfileInterested.ProfileInterestedCore(ref objLoggedIn);
            using (objProfileInterestedCore as IDisposable)
                isInterestedProfile = objProfileInterestedCore.isInterestedProfile(objLoggedIn.LoginID, ID);
            objProfileInterestedCore = null;
            if (isInterestedProfile)
            {
                intInterestedProfile = 1;
            }
            // Try to change the below implementation as it is possible of JSON HiJacking -- Anand J
            return(this.Json(intInterestedProfile, JsonRequestBehavior.AllowGet));
        }