public GetCountryResponse GetCountry(GetCountryRequest request) { CountryView view = new CountryView(ObjectFactory.Create<IReadModelStore>()); CountryDto dto = view.Load(request.CountryId); GetCountryResponse response = new GetCountryResponse(); response.Country = dto; return response; }
public CountryFacade(IReadModelStore readModelStore) : base(readModelStore) {} public GetCountryListResponse GetCountryList(GetCountryListRequest request) { CountryView view = new CountryView(ObjectFactory.Create<IReadModelStore>()); List<CountryDto> list = view.GetList(request.Filter); GetCountryListResponse response = new GetCountryListResponse(); response.CountryList = list; return response; }