I need my @Html.ActionLink();
to execute a onclick()
and then I run the driver that I send as overload this is what I have.
@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');});" })'