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)); } }
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)); } }