public async Task <OrderMeta> Handle(GetOrderMetaQuery request, CancellationToken cancellationToken) { return(new OrderMeta { Countries = await _countryRepository.GetAll(), ShippingMethods = await _shippingMethodRepository.GetAll(), PaymentMethods = await _paymentMethodRepository.GetAll(), }); }
public IEnumerable <DLModel.ShippingMethod> getAllShippingMethod() { IEnumerable <DLModel.ShippingMethod> _shippingMethod = _shippingMethodRepository.GetAll().Select(rk => new DLModel.ShippingMethod().InjectFrom(rk)).Cast <DLModel.ShippingMethod>().OrderBy(rk => rk.ShippingMethodName).ToList(); return(_shippingMethod); }