예제 #1
0
        public IHttpActionResult VerifyOTPUseNumber(string phoneNumber, string otptext)
        {
            OTPOperation businessOperation = new OTPOperation();
            bool         itemOut           = false;
            BaseOutput   baseOutput        = businessOperation.VerifyOTPByNumber(phoneNumber, otptext, out itemOut);

            if (baseOutput.ResultCode == 1)
            {
                return(Ok(itemOut));
            }
            else
            {
                return(Content(HttpStatusCode.BadRequest, baseOutput));
            }
        }
예제 #2
0
        public IHttpActionResult GenarateOTPUseNumber(string phoneNumber)
        {
            OTPOperation businessOperation = new OTPOperation();
            string       itemOut           = string.Empty;
            BaseOutput   baseOutput        = businessOperation.GenarateOTPByNumber(phoneNumber, out itemOut);

            if (baseOutput.ResultCode == 1)
            {
                return(Ok(itemOut));
            }
            else
            {
                return(Content(HttpStatusCode.BadRequest, baseOutput));
            }
        }