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