public IActionResult Get(string token) { var bot = storage.GetBot(token); if (bot == null) { return(NotFound()); } var botLight = new BotLight() { Name = bot.Name }; return(Ok(botLight)); }
public async Task <IActionResult> GetAsync(string token) { var bot = await storage.GetBotAsync(token); if (bot == null) { return(NotFound()); } var botLight = new BotLight() { Name = bot.Name }; return(Ok(botLight)); }