public async Task <Result <ICollection <OrderPaymentListItemModel> > > GetUnpaidOrdersForLastPeriod(int id) { AffiliateOrderPaymentFilter filter = new AffiliateOrderPaymentFilter(); filter.IdAffiliate = id; filter.Status = AffiliateOrderPaymentStatus.NotPaid; filter.To = GetLastMonthStartDayFromPSTInLocal(); var result = await _affiliateService.GetAffiliateOrderPayments(filter); var toReturn = result.Items.Select(p => new OrderPaymentListItemModel(p)).ToList(); return(toReturn); }
public async Task <Result <PagedList <AffiliateOrderListItemModel> > > GetAffiliateOrderPaymentsWithCustomerInfo([FromBody] AffiliateOrderPaymentFilter filter) { return(await _orderService.GetAffiliateOrderPaymentsWithCustomerInfo(filter)); }