I am new at MVC and JS. I am trying to close a popup window after running Action in controller. However, I could not come up with a solution or found a working one. It seems to be an easy issue but it is still. I tried the solution at here and many others but it doesn't work.
ActionResult
method in Controller. This collects all data on the popup window.
[ActionName("NewStudentSchedule")]
[HttpPost]
public ActionResult NewStudentSchedule_Submit(Student student)
{
return View();
}
Window should close after clicking the Save button.
<input type="submit" class="btn btn-danger btn-lg" value="Save" />
Any help will be appreciated.