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