public async Task <ActionResult> Resolve([FromForm] SlackCommandDto slackCommand) { try { await _coffeeCommands.Resolve(slackCommand.ToCommand()); return(Ok()); } catch (Exception ex) { return(Ok(string.Format(DougMessages.DougError, ex.Message))); } }
public async Task <ActionResult> Resolve([FromForm] SlackCommandDto slackCommand) { var result = await _coffeeCommands.Resolve(slackCommand.ToCommand()); return(Ok(result.Message)); }