Exemplo n.º 1
0
        byte[] SetLangCode(Dictionary <string, object> request)
        {
            string userID   = request.ContainsKey("UserID")   ? request["UserID"].ToString()   : "";
            string langCode = request.ContainsKey("LangCode") ? request["LangCode"].ToString() : "";

            if ((userID != null) && (langCode != null) && m_GridUserService.SetLangCode(userID, langCode))
            {
                return(SuccessResult());
            }
            return(FailureResult());
        }
        public bool SetLangCode(string userID, string langCode)
        {
            if (m_RemoteConnector.SetLangCode(userID, langCode))
            {
                // Update the cache too
                GridUserInfo info = null;
                if (m_Infos.TryGetValue(userID, out info))
                {
                    info.LangCode = langCode;
                }
                return(true);
            }

            return(false);
        }
 public bool SetLangCode(string userID, string langCode)
 {
     return(m_GridUserService.SetLangCode(userID, langCode));
 }