public ShowCustomersViewModel() { cDataHandler = DatabaseFacade.GetInstance(); Customers = cDataHandler.GetAllCustomers(); if (Customers.Count > 0) { CurrentCustomer = Customers[0]; } }
public CreateCustomerViewModel(IPersistentCustomerDataHandler newdatahandler) { dataHandler = newdatahandler; }
public CreateCustomerViewModel() { dataHandler = DatabaseFacade.GetInstance(); }