Пример #1
0
        public async Task <List <Tuple <string, string, string> > > GetCustomerVatAndNameAsync(IDpsCustomer idpsCustomer)
        {
            var allCustomers = await idpsCustomer.GetAllCustomersAsync();

            var Model = new List <Tuple <string, string, string> >();

            foreach (var customer in allCustomers)
            {
                Model.Add(new Tuple <string, string, string>(customer.Customer.VatNumber, customer.Customer.Name, customer.Customer.OfficialName));
            }
            return(Model);
        }
Пример #2
0
 public async Task <List <DpsCustomer> > GetAllCustomersAsync(IDpsCustomer idpsCustomer)
 {
     return(await idpsCustomer.GetAllCustomersAsync());
 }