public async Task <bool> Commit() { if (_notifications.HasNotifications()) { return(false); } if (await _uow.Commit()) { return(true); } await _bus.Publish(new ExceptionNotification("002", "We had a problem during saving your data.")); return(false); }
protected bool IsValidOperation() { return(!_notifications.HasNotifications()); }