Beispiel #1
0
 /// <summary>
 /// Retorna um tipo VERDADEIRO para a instrução do conteúdo especificado, caso contrário FALSO.
 /// </summary>
 public bool Delete(int id)
 {
     try
     {
         return(regrasdados.Delete(id));
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message);
     }
 }
Beispiel #2
0
        private void ExcluirFeriado()
        {
            FeriadoDAO fDAO     = new FeriadoDAO();
            Feriado    _feriado = fDAO.Find(f => f.COD_FERIADO == ((Feriado)gridFeriados.CurrentRow.DataBoundItem).COD_FERIADO).First <Feriado>();

            fDAO.Delete(_feriado);
            fDAO.SaveChanges();
            Util.LimparForm(this);
            editando = false;
        }