In asp.net MVC getting the model value but while passing to view nothing displayed.
Controller
public ActionResult Index(plan plan1)
{
var myCharge = new StripeChargeCreateOptions();
string apiKey = "";
var stripeClient = new StripeClient(apiKey);
var planService = new StripePlanService(apiKey);
StripePlan response = planService.Get("1234");
plan1.Amount = (response.Amount).ToString();
return View();
}
view
<div>
@Html.TextBoxFor(m => m.Amount)
</div>
How to display the Amount value inside textbox