Пример #1
0
 public ActionResult Addslur([FromForm] SlackCommandDto slackCommand)
 {
     try
     {
         var result = _slursCommands.AddSlur(slackCommand.ToCommand());
         return(Ok(result.Message));
     }
     catch (Exception ex)
     {
         return(Ok(string.Format(DougMessages.DougError, ex.Message)));
     }
 }
Пример #2
0
        public ActionResult Addslur([FromForm] SlackCommandDto slackCommand)
        {
            var result = _slursCommands.AddSlur(slackCommand.ToCommand());

            return(Ok(result.Message));
        }