Index - View
@model SendAFaxWeb.Models.Send
//view start here
Test Upload File
You have implemented cross origin security like : @Html.AntiForgeryToken(). So you have to pass that value as parameter in your AJAX call as below.
AJAX:
data:{__RequestVerificationToken:$('[name=__RequestVerificationToken]').val();}
Also you have to add attribute in controller.
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Send(Send contact)
You can do it using the below code
@model PK.LifeStyles.Web.Models.Reimbursement //model declaration on top
<button type="button" onclick="location.href='@Url.Action("ActionName", "ControllerName",Model)'">
Your code behind should look something like this
public ActionResult Save(Reimbursement data)
{
// your code
}
//just some random class
public class Reimbursement{
public string Destination { get; set; }
}