コード例 #1
0
        public GetCompanyResponse GetCompany(GetCompanyRequest request)
        {
            CompanyView view = new CompanyView(ObjectFactory.Create<IReadModelStore>());
            CompanyDto dto = view.Load(request.CompanyId);
            GetCompanyResponse response = new GetCompanyResponse();
            response.Company = dto;
            return response;

        }
コード例 #2
0
    public CompanyFacade(IReadModelStore readModelStore) : base(readModelStore) {}        public GetCompanyListResponse GetCompanyList(GetCompanyListRequest request)
        {
            CompanyView view = new CompanyView(ObjectFactory.Create<IReadModelStore>());
            List<CompanyDto> list = view.GetList(request.Filter);
            GetCompanyListResponse response = new GetCompanyListResponse();
            response.CompanyList = list;
            return response;

        }