User1982683974 posted
Hello
I have a http post method and wanna post some data on the load of the page , the page doesn't have a button and that s the requirement.The issue is the action method is not even called
my action method :
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult SubmitPerson(string id, AdvisementModel model)
{
and in the view:
using (Html.BeginForm("SubmitPerson", "Advisement", FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.HiddenFor(model => model.Token)