A question about the flow of information in an object oriented construction, e.g. from controller to repository.
Should the objects passed always be in the model or should we allow smaller parts of information to travel?
What would you recommend? What factors decide the approach?
E.g. something like
Controller: string alias = "alpha"; bool aliasExists = Repository.CheckIfAliasExists(alias) Repository: bool CheckIfAliasExists(string alias);
or something like
Controller: string alias = "alpha"; Member member = Repository.GetMemberByAlias(alias); bool aliasExists = member != null; Repository: Member GetMemberByAlias(string alias);