@using (Html.BeginForm("Edit", "Home", new { Id = emp.Id }, FormMethod.Get)) { <button>EDIT</button> } @using (Html.BeginForm("Delete", "Home", new { Id = emp.Id }, FormMethod.Post)) { <button>DELETE</button> }
BY LOVE Here, Action name=Edit, ControllerName=Home. @using (Html.BeginForm("Edit", "Home", new { Id = emp.Id }, FormMethod.Get)) { <button>EDIT</button> } @using (Html.BeginForm("Delete", "Home", new { Id = emp.Id }, FormMethod.Post)) { <button>DELETE</button> }