Esempio n. 1
0
        // GET api/worlds
        public object GetLocalizedWorlds(string lang)
        {
            string key;

            switch (lang.ToLower())
            {
            case "de":
            {
                key = CouchbaseKeys.WorldNamesDe;
                break;
            }

            case "es":
            {
                key = CouchbaseKeys.WorldNamesEs;
                break;
            }

            case "fr":
            {
                key = CouchbaseKeys.WorldNamesFr;
                break;
            }

            default:
            {
                key = CouchbaseKeys.WorldNamesEn;
                break;
            }
            }
            return(CouchbaseManager.GetWorlds(key));
        }
Esempio n. 2
0
 // GET api/worlds
 public object Get()
 {
     return(CouchbaseManager.GetWorlds(CouchbaseKeys.WorldNamesEn));
 }