Necesito que mi @Html.ActionLink();
me ejecute un onclick()
y luego me ejecute el controlador que le mando como sobrecarga esto es lo que tengo.
@Html.ActionLink("Delete", "DeleteMunicipality", new { id = item.MunicipalityId }, new { @class = "btn btn-danger", onClick = "swal({ title: 'Are you sure?', text: 'You will not be able to recover this imaginary file!', type: 'warning', showCancelButton: true, confirmButtonColor: '#DD6B55', confirmButtonText: 'Yes, delete it!', closeOnConfirm: false }, function(){ swal('Deleted!', 'Your imaginary file has been deleted.', 'success');});" })`