Ejemplo n.º 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));
        }
Ejemplo n.º 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)));
        }
Ejemplo n.º 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)));
        }