public async Task <Result <ICollection <PaymentHistoryLineItemModel> > > GetAffiliatePaymentHistory(int id) { return((await _affiliateService.GetAffiliatePayments(id)).Select(p => new PaymentHistoryLineItemModel() { DateCreated = p.DateCreated, Amount = p.Amount, }).ToList()); }