public bool SaveLocalization(string code)
 {
     try
     {
         var user = MembershipContext.AuthenticatedUser;
         if (user != null)
         {
             user.PreferredCultureCode = code;
             UserInfoProvider.SetUserInfo(user);
         }
     }
     catch (Exception exc)
     {
         _logger.LogException("UserProvider - Saving Localization", exc);
         throw;
     }
     return(true);
 }
Example #2
0
        public override void OnException(HttpActionExecutedContext context)
        {
            context.Response = FilterHelper.ErrorResponse(context.Exception.Message);

            logger?.LogException(loggerSource, context.Exception);
        }