예제 #1
0
 public ActionResult Leaderboard([FromForm] SlackCommandDto slackCommand)
 {
     try
     {
         var result = _creditsCommands.Leaderboard(slackCommand.ToCommand());
         return(Ok(result.Message));
     }
     catch (Exception ex)
     {
         return(Ok(string.Format(DougMessages.DougError, ex.Message)));
     }
 }
예제 #2
0
        public ActionResult Leaderboard([FromForm] SlackCommandDto slackCommand)
        {
            var result = _creditsCommands.Leaderboard(slackCommand.ToCommand());

            return(Ok(result.Message));
        }