// 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)); }
// GET api/worlds public object Get() { return(CouchbaseManager.GetWorlds(CouchbaseKeys.WorldNamesEn)); }