public CreateSaleViewModelFactory( IGetCustomersListQuery customersQuery, IGetEmployeesListQuery employeesQuery, IGetProductsListQuery productsQuery) { _customersQuery = customersQuery; _employeesQuery = employeesQuery; _productsQuery = productsQuery; }
public CustomersController( IGetCustomersListQuery getCustomersListQuery, IGetCustomerDetailQuery getCustomerDetailQuery, ICreateCustomerCommand createCustomerCommand, IUpdateCustomerCommand updateCustomerCommand, IDeleteCustomerCommand deleteCustomerCommand) { _getCustomersListQuery = getCustomersListQuery; _getCustomerDetailQuery = getCustomerDetailQuery; _createCustomerCommand = createCustomerCommand; _updateCustomerCommand = updateCustomerCommand; _deleteCustomerCommand = deleteCustomerCommand; }
public CustomersController(IGetCustomersListQuery query) { _query = query; }
// Just inject repository in here public GetCustomersListQuery1Handler(IGetCustomersListQuery query) { _query = query; }