Пример #1
0
 public CreateSaleViewModelFactory(
     IGetCustomersListQuery customersQuery,
     IGetEmployeesListQuery employeesQuery,
     IGetProductsListQuery productsQuery)
 {
     _customersQuery = customersQuery;
     _employeesQuery = employeesQuery;
     _productsQuery  = productsQuery;
 }
 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;
 }
Пример #4
0
 public CustomersController(IGetCustomersListQuery query)
 {
     _query = query;
 }
 public CustomersController(IGetCustomersListQuery query)
 {
     _query = query;
 }
        // Just inject repository in here

        public GetCustomersListQuery1Handler(IGetCustomersListQuery query)
        {
            _query = query;
        }