コード例 #1
0
 public List <CustomerViewModel> GetCustomers()
 => Repository.GetCustomers()
 .Select(customer => CustomerViewModel.FromKupac(customer))
 //.Take(10)
 .ToList();
コード例 #2
0
 public List <CustomerViewModel> GetCustomersInCurrentLocation()
 => Repository.GetCustomersFrom(Customer.CityID, Customer.CountryID)
 .Select(kupac => CustomerViewModel.FromKupac(kupac))
 .ToList();
コード例 #3
0
        public EditCustomerViewModel(int customerID)
        {
            var kupac = Repository.GetCustomer(customerID);

            Customer = CustomerViewModel.FromKupac(kupac);
        }