Beispiel #1
0
        public IActionResult GetMsgCaptcha([FromQuery] MsgCaptchaDto msgCaptchaDto)
        {
            var msgSendResult = _captchaService.GetMsgCaptcha(msgCaptchaDto);

            if (msgSendResult.Item1)
            {
                return(Ok(msgSendResult.Item2));
            }
            else
            {
                return(StatusCode(StatusCodes.Status403Forbidden, msgSendResult.Item2));
            }
        }