public async Task <IActionResult> GetAsync(string sessionID, string code) { OTPService service = new OTPService(); var response = await service.VerifyOTPAsync("username", "password", "url", sessionID, code); //check code value if (true) { return(Ok()); } else { return(BadRequest()); } }