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