コード例 #1
0
        public JsonResult OnCurrencyChanged(BusinessLibrary.ViewModels.UserDashboardViewModel ud)
        {
            Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current);

            BusinessLibrary.Library.UserSelfAdministrationLibrary uLib = new BusinessLibrary.Library.UserSelfAdministrationLibrary(System.Web.HttpContext.Current, session);
            return(Json(uLib.GetUserDashboardFromViewModel(ud), JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
 public JsonResult SaveProfile(BusinessLibrary.ViewModels.UserDashboardViewModel ud)
 {
     try
     {
         Session session = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current);
         BusinessLibrary.Library.UserSelfAdministrationLibrary uLib = new BusinessLibrary.Library.UserSelfAdministrationLibrary(System.Web.HttpContext.Current, session);
         uLib.SaveUserProfile(ud);
         return(Json(new { StatusKey = "SUCCESS" }, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json(new { StatusKey = "ERROR" }, JsonRequestBehavior.AllowGet));
     }
 }