Модель
public bool Delivery_type_one { get; set; }
public bool Delivery_type_two { get; set; }
Есть два чекбокса, как сделать чтобы нельзя было выбрать сразу два?
<div class="form-group">
@Html.Label("del1", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div class="checkbox">
@Html.EditorFor(model => model.Delivery_type_one)
@Html.ValidationMessageFor(model => model.Delivery_type_one, "", new { @class = "text-danger" })
</div>
</div>
</div>
<div class="form-group">
@Html.Label("del2", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div class="checkbox">
@Html.EditorFor(model => model.Delivery_type_two)
@Html.ValidationMessageFor(model => model.Delivery_type_two, "", new { @class = "text-danger" })
</div>
</div>
</div>