When the OnGetLendConfirm() executes, the url is being set to null and I don't know how to preserve the variable correctly so that I can use it in both functions.
MongoDBHandler handler = new MongoDBHandler();
public string url;
[BindProperty]
public string product { get; set; }
public void OnGet()
{
url = HttpContext.Request.Query["product"].ToString();
product = handler.CheckItems(url);
}
public void OnGetLendConfirm(string dt)
{
Debug.WriteLine(url);
Debug.WriteLine(dt);
//handler.LendItem(id, dt);
}
}