protected void FillDdlScegliLocale()
 {
     ddlScegliLocaleDefault.Items.Clear();
     ddlScegliLocale.Items.Clear();
     ddlScegliLocaleDefault.Items.Add(new ListItem("", "-1"));
     ddlScegliLocale.Items.Add(new ListItem("", "-1"));
     DropDownListManager.FillDdlLocali(LocaliDAO.GetAll(), ref ddlScegliLocale);
     DropDownListManager.FillDdlLocali(LocaliDAO.GetOnlyFirstTypeOfLocale(), ref ddlScegliLocaleDefault);
 }
 private void FillDdlLocali()
 {
     try
     {
         DropDownListManager.FillDdlLocali(LocaliDAO.GetOnlyFirstTypeOfLocale(), ref ddlScegliLocale);
     }
     catch (Exception ex)
     {
         (Master as layout).SetAlert("alert-danger", $"Errore durante il FillDdl ==> {ex.Message}");
     }
 }