コード例 #1
0
        protected async Task <bool> Commit()
        {
            if (await _notifications.HasNotificationsAsync())
            {
                return(false);
            }
            if (await _uow.Commit())
            {
                return(true);
            }

            await _notifications.AddNotificationAsync(new DomainNotification("Commit", "Ocorreu um erro ao salvar os dados no banco"));

            return(false);
        }
コード例 #2
0
 protected async Task <bool> IsValidAsync()
 {
     return(!await _notifications.HasNotificationsAsync());
 }