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); }
protected async Task <bool> IsValidAsync() { return(!await _notifications.HasNotificationsAsync()); }