Пример #1
0
        public async Task <Result <IList <PaymentMethodListItemModel> > > GetPaymentMethods()
        {
            var result = await _paymentMethodService.GetApprovedPaymentMethodsAsync();

            return(result.Select(x => new PaymentMethodListItemModel()
            {
                Id = x.Id,
                CustomerTypes = x.CustomerTypes?.Select(y => y.IdCustomerType).ToList(),
                DateEdited = x.DateEdited,
                EditedBy = x.AdminProfile?.AgentId,
                Name = x.Name
            }).ToList());
        }