예제 #1
0
        public JsonResult ClientSettings()
        {
            var user = this.CurrentUser();

            if (user == null)
            {
                return(Json(_clientSettingsMapper.GetDefault(), JsonRequestBehavior.AllowGet));
            }
            var profile = _profileService.GetProfile(user);

            return(Json(_clientSettingsMapper.GetClientSettings(profile), JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public JsonResult ClientSettings()
        {
            var user = _userRetrievalShim.GetUser(HttpContext);

            if (user == null)
            {
                return(Json(_clientSettingsMapper.GetDefault()));
            }
            var profile = _profileService.GetProfile(user);

            return(Json(_clientSettingsMapper.GetClientSettings(profile)));
        }
예제 #3
0
        public async Task <JsonResult> ClientSettings()
        {
            var user = _userRetrievalShim.GetUser();

            if (user == null)
            {
                return(Json(_clientSettingsMapper.GetDefault()));
            }
            var profile = await _profileService.GetProfile(user);

            return(Json(_clientSettingsMapper.GetClientSettings(profile)));
        }