So I have this form:
@using (Html.BeginForm("SendMailAsACompany", "Contract", FormMethod.Post, new { id = "cvr" }))
{
<input type="hidden" value=@Model name="studentId" />
<input type="hidden" value=@Model.Project.UserId name="companyId" />
<input type="hidden" value=@Model.ApplicationId name="applicationId"/>
<input type="text" name="companyCVR" placeholder="Indsæt CVR-nr." required/>
}
Then at the bottom of the page I have the submit button:
<button form="cvr" class="btn btn-success">Submit</button>
I want to add a second button that would submit the same data but call another method instead of "SendMailAsACompany". Is there a way to modify the button/form to accommodate this change?