public void Save(Guid commitId, Action <IDictionary <string, object> > updateHeaders) { try { _wrappedRepository.Save(_aggregate, commitId, updateHeaders); _afterSaveAction(_aggregate.Id, _wrappedRepository, _aggregate); } catch (Exception) { _onExceptionAction(_aggregate.Id, _wrappedRepository); throw; } }
/// <summary> /// Simply save the entity with wrapped repository. /// </summary> /// <param name="commitId"></param> /// <param name="updateHeaders"></param> public void Save(Guid commitId, Action <IDictionary <string, object> > updateHeaders) { _wrappedRepository.Save(_aggregate, commitId, updateHeaders); }