I have an action that should prompt the user if the current object has children. The user should be able to elect to update the children as well, or not. How to I handle the user responds to this prompt?
<tr>
<td><button type="submit" class="button">Save</button></td>
@if (Model.OrganizationHasChildren)
{
<td>@Html.ActionLink("Save", "AleMasterData", null, new {@class = "button",onclick = "return confirm('Do you want to apply the ALE Indicator change to the sub-clients also?');" })</td>
}
else
{
<td>@Html.ActionLink("Save", "AleMasterData", null, new {@class = "button"})</td>
}
</tr>