public List <CustomerViewModel> GetCustomers() => Repository.GetCustomers() .Select(customer => CustomerViewModel.FromKupac(customer)) //.Take(10) .ToList();
public List <CustomerViewModel> GetCustomersInCurrentLocation() => Repository.GetCustomersFrom(Customer.CityID, Customer.CountryID) .Select(kupac => CustomerViewModel.FromKupac(kupac)) .ToList();
public EditCustomerViewModel(int customerID) { var kupac = Repository.GetCustomer(customerID); Customer = CustomerViewModel.FromKupac(kupac); }