I have 2 submit buttons in one form and I want to pass data from the button that is pressed to a the server and then server can set status based on the data given by form action.
I understand the C# part, I'm just not sure with what to do in Html to pass the data from the button to the form action
HTML
 <form action="@Url.Action("Create", new{ name})" method="post">
      <input type="submit" class="button" name="Draft" value="Save as draft " />
      <input type="submit" class="button" name="Publish" value="Save and publish" />
 <form>
C#
[HttpPost]
public async Task<IActionResult> Create(string name)
{
       if (name== "Draft")
        {
            model.Status = IPublishable._Status.Draft;
        }
        else 
        {
            model.Status = IPublishable._Status.Published;
        }
}
   
 
     
    
 
    

