Пример #1
0
        public async Task <ActionResult> Kick([FromForm] SlackCommandDto slackCommand)
        {
            try
            {
                await _coffeeCommands.KickCoffee(slackCommand.ToCommand());

                return(Ok());
            }
            catch (Exception ex)
            {
                return(Ok(string.Format(DougMessages.DougError, ex.Message)));
            }
        }
Пример #2
0
        public async Task <ActionResult> Kick([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _coffeeCommands.KickCoffee(slackCommand.ToCommand());

            return(Ok(result.Message));
        }