public void SomeOperation(AnotherEntityId id) { AnotherEntity entity = _anotherEntityRepository.GetById(id); entity.SomeLogic(); _anotherEntityRepository.Update(entity); }
public AnotherEntity GetById(AnotherEntityId id) { throw new NotImplementedException(); }