public IActionResult sendsms() { string mobno = HttpContext.Session.GetString(SessionMobilenumber); var response = CustomerHandler.SendSms(mobno); if (response.RequestStatus.ToString() == "Success") { TempData["SentOTP"] = response.OTPSent; TempData.Keep("SentOTP"); return(Json(new { success = true, responseText = "Sending OTP Success.", sentotp = response.OTPSent })); } else { return(Json(new { success = false, responseText = "Sending OTP Failed." })); } }