public CRUDController() { customersList = new List<ICustomer>(); daf = new DataAccessFacade(); sc = new SerializeController(); cf = new CustomerFacade(); }
public static IDataAccessFacade GetInstance() { if (instance == null) { return(instance = new DataAccessFacade()); } return(instance); }
public static IDataAccessFacade GetInstance() { if (instance == null) { return instance = new DataAccessFacade(); } return instance; }
public ModelFacade() { dataAccessFacade = new DataAccessFacade(); customerController = new CustomerController(dataAccessFacade.GetCustomers()); saleController = new SaleController(dataAccessFacade.GetSales()); paymentRuleCatalogController = new PaymentRuleCatalogController(dataAccessFacade.GetPaymentRuleCatalogs()); paymentContractController = new PaymentContractController(dataAccessFacade.GetPaymentContracts()); paymentRuleController = new PaymentRuleController(dataAccessFacade.GetPaymentRules()); bookingController = new BookingController(dataAccessFacade.GetBookings()); supplierController = new SupplierController(dataAccessFacade.GetSuppliers()); }
public SubController() { dataAccessFacade = new DataAccessFacade(); }