示例#1
0
 public ActionResult getProfileByProfileID(string ID)
 {
     Mugurtham.Core.Login.LoggedInUser objLoggedIn = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"];
     Mugurtham.Core.Profile.API.ProfileCore objProfileCoreForView = null;
     Mugurtham.Core.Profile.API.ProfileCore objProfileCore = new Mugurtham.Core.Profile.API.ProfileCore();
     using (objProfileCore as IDisposable)
         objProfileCore.GetByProfileID(ID, out objProfileCoreForView, objLoggedIn);
     objProfileCore = null;
     // Try to change the below implementation as it is possible of JSON HiJacking -- Anand J
     return this.Json(objProfileCoreForView, JsonRequestBehavior.AllowGet);
 }
 public ActionResult getProfileByProfileID(string ID)
 {
     Mugurtham.Core.Login.LoggedInUser      objLoggedIn           = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"];
     Mugurtham.Core.Profile.API.ProfileCore objProfileCoreForView = null;
     Mugurtham.Core.Profile.API.ProfileCore objProfileCore        = new Mugurtham.Core.Profile.API.ProfileCore(ref objLoggedIn);
     using (objProfileCore as IDisposable)
         objProfileCore.GetByProfileID(ID, out objProfileCoreForView, objLoggedIn);
     objProfileCore = null;
     // Try to change the below implementation as it is possible of JSON HiJacking -- Anand J
     return(this.Json(objProfileCoreForView, JsonRequestBehavior.AllowGet));
 }
示例#3
0
 public ActionResult Add([System.Web.Http.FromBody]Mugurtham.Core.BasicInfo.BasicInfoCoreEntity objBasicInfoCoreEntity)
 {
     Mugurtham.Core.Login.LoggedInUser objLoggedIn = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"];
     string strProfileID = string.Empty;
     Mugurtham.Core.Profile.API.ProfileCore objProfileCore = new Mugurtham.Core.Profile.API.ProfileCore();
     using (objProfileCore as IDisposable)
     {
         objProfileCore.Add(ref objBasicInfoCoreEntity, out strProfileID, objLoggedIn);
     }
     objProfileCore = null;
     return this.Json(strProfileID, JsonRequestBehavior.AllowGet);
 }
示例#4
0
        public ActionResult Add([System.Web.Http.FromBody] Mugurtham.Core.BasicInfo.BasicInfoCoreEntity objBasicInfoCoreEntity)
        {
            Mugurtham.Core.Login.LoggedInUser objLoggedIn = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"];
            string strProfileID = string.Empty;

            Mugurtham.Core.Profile.API.ProfileCore objProfileCore = new Mugurtham.Core.Profile.API.ProfileCore(ref objLoggedIn);
            using (objProfileCore as IDisposable)
            {
                objProfileCore.Add(ref objBasicInfoCoreEntity, out strProfileID, objLoggedIn);
            }
            objProfileCore = null;
            return(this.Json(strProfileID, JsonRequestBehavior.AllowGet));
        }