コード例 #1
0
ファイル: CombatController.cs プロジェクト: GabFillit/Doug-1
 public ActionResult Steal([FromForm]SlackCommandDto slackCommand)
 {
     try
     {
         var result = _combatCommands.Steal(slackCommand.ToCommand());
         return Ok(result.Message);
     }
     catch (Exception ex)
     {
         return Ok(string.Format(DougMessages.DougError, ex.Message));
     }
 }
コード例 #2
0
        public async Task <ActionResult> Steal([FromForm] SlackCommandDto slackCommand)
        {
            var result = await _combatCommands.Steal(slackCommand.ToCommand());

            return(Ok(result.Message));
        }