I want a column which I can have a custom form that calls to a delete [HttpPost]
action.
This is what I have so far:
@Html.Grid(Model.PagedList).Columns(column =>{
column.For(x => x.Name);
column.For(x => Html.ActionLink("View", "Details", "Users", new { id = x.UserId }, null));
column.For(x => Html.ActionLink("Edit", "EditUser", new { id = x.UserId }));
}).Sort(Model.GridSortOptions)
So how do I add a column that generates code such as:
<form action="post">
<input type="hidden" name="userId" />
<input type="submit" />
</form>
ps. If this is not the correct way of deleting, please tell. I'm still new.