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; }
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; }