public GetProtocolGroupEditFormDataResponse GetProtocolGroupEditFormData( GetProtocolGroupEditFormDataRequest request) { var protocolAssembler = new ProtocolGroupAssembler(); var codes = CollectionUtils.Map <ProtocolCode, ProtocolCodeSummary>( this.PersistenceContext.GetBroker <IProtocolCodeBroker>().FindAll(false), code => protocolAssembler.GetProtocolCodeSummary(code)); var procedureTypeGroupAssembler = new ProcedureTypeGroupAssembler(); var readingGroups = CollectionUtils.Map <ProcedureTypeGroup, ProcedureTypeGroupSummary>( this.PersistenceContext.GetBroker <IReadingGroupBroker>().FindAll(), readingGroup => procedureTypeGroupAssembler.GetProcedureTypeGroupSummary(readingGroup, this.PersistenceContext)); return(new GetProtocolGroupEditFormDataResponse(codes, readingGroups)); }
public GetProtocolGroupEditFormDataResponse GetProtocolGroupEditFormData( GetProtocolGroupEditFormDataRequest request) { var protocolAssembler = new ProtocolGroupAssembler(); var codes = CollectionUtils.Map<ProtocolCode, ProtocolCodeSummary>( this.PersistenceContext.GetBroker<IProtocolCodeBroker>().FindAll(false), code => protocolAssembler.GetProtocolCodeSummary(code)); var procedureTypeGroupAssembler = new ProcedureTypeGroupAssembler(); var readingGroups = CollectionUtils.Map<ProcedureTypeGroup, ProcedureTypeGroupSummary>( this.PersistenceContext.GetBroker<IReadingGroupBroker>().FindAll(), readingGroup => procedureTypeGroupAssembler.GetProcedureTypeGroupSummary(readingGroup, this.PersistenceContext)); return new GetProtocolGroupEditFormDataResponse(codes, readingGroups); }