Calling C# method from JQuery Ajax in .NET Core Razor Pages
I have this method in Razor Page code behind which I would like to call using JQuery Ajax [HttpPost] public IActionResult OnPostPopulateMovieDate(int selectedMovieId) { return new JsonResult("json result"); } This is my JQuery code to call the method $.ajax({ contentType:…