/// <summary>
        /// Sets the logical call context culture from OwinContext values
        /// </summary>
        /// <param name="owinContext"></param>
        public static void RestoreCulture(this IOwinContext owinContext)
        {
            var requestCulture = owinContext.GetRequestCulture();

            if (requestCulture != null)
            {
                CultureInfo.CurrentCulture   = requestCulture.Culture;
                CultureInfo.CurrentUICulture = requestCulture.UICulture;
            }
        }