コード例 #1
0
ファイル: CommandHandler.cs プロジェクト: hudsonsteel/Agenda
        public bool Commit()
        {
            if (_notificacao.TemNotificacoes())
            {
                return(false);
            }
            if (_uow.Commit())
            {
                return(true);
            }

            _bus.RaiseEvent(new DomainNotification("Commit", "Ocorreu um problema ao executar os dados."));
            return(false);
        }
コード例 #2
0
ファイル: BaseController.cs プロジェクト: hudsonsteel/Agenda
 public bool IsValidOperation()
 {
     return(!_notifications.TemNotificacoes());
 }