public void SalvarExecucaoAgendamento(int idAgendamento, DateTime dataExecucao, string message, bool sucesso)
 {
     try
     {
         ExecucaoAgendamento execAgd = new ExecucaoAgendamento();
         execAgd.IdAgendamento = idAgendamento;
         execAgd.DataExecucao  = DateTime.Now;
         execAgd.Resultado     = message;
         execAgd.Sucesso       = sucesso;
         _dao.Salvar(execAgd);
     }
     catch (Exception ex) { throw ex; }
 }
 public void Salvar(ExecucaoAgendamento exeAgd)
 {
     try
     {
         if (exeAgd.IdExecucaoAgendamento == 0)
         {
             _dao.Add(exeAgd);
             _dao.CommitChanges();
         }
         else
         {
             _dao.Update(exeAgd, exeAgd.IdExecucaoAgendamento);
         }
     }catch (Exception ex)
     {
         throw ex;
     }
 }