public CustomersAndOrdersViewModel(IValidationRepository validationRepository, IOrderDetailsViewModel orderDetailsViewModel)
 {
     this.validationRepository = validationRepository;
     this.orderDetailsViewModel = orderDetailsViewModel;
     var customers = validationRepository.ListDocuments<Customer>();
     Customers = new BindableCollection<Customer>(customers);
 }
 public NewOrderViewModel(IValidationRepository validationRepository)
 {
     this.validationRepository = validationRepository;
     var listDocuments = validationRepository.ListDocuments<Customer>();
     Customers = new BindableCollection<Customer>(listDocuments);
     if (Customers.Count > 0)
         CustomerId = Customers.First().Id;
 }