Beispiel #1
0
        public HttpResponseMessage verifyOTP([FromBody] LoginModel loginm)
        {
            var result = objAuthorization.checkOTP(loginm);

            if (result == true)
            {
                resp = Request.CreateResponse <ResponseModel>(HttpStatusCode.OK, new ResponseModel()
                {
                    message = "OTP Verified successfully", output = dt2, statuscode = Convert.ToInt16(HttpStatusCode.OK)
                });
                return(resp);
            }
            else
            {
                resp = Request.CreateResponse <ResponseModel>(
                    HttpStatusCode.OK,
                    new ResponseModel()
                {
                    message = "Incorrect otp", output = dt2, statuscode = Convert.ToInt16(HttpStatusCode.OK)
                }
                    );
            }
            return(resp);
        }