Exemplo n.º 1
0
        public async Task <IActionResult> PostAsync([FromBody] BotRegistrationInput input)
        {
            var bot = await storage.GetBotAsync(input);

            if (bot != null)
            {
                return(StatusCode(409));
            }

            return(Ok(await storage.AddBotAsync(input)));
        }