コード例 #1
0
ファイル: CustomersController.cs プロジェクト: tmotjope/NWT
 public CustomersController(IGetCustomerListQuery customerContext, IGetCustomerDetailQuery customerDetailContext,
                            ICreateCustomerCommand customerCreateContext, IUpdateCustomerCommand customerUpdateContext, IDeleteCustomerCommand customerDeleteContext)
 {
     _customerContext       = customerContext;
     _customerDetailContext = customerDetailContext;
     _customerCreateContext = customerCreateContext;
     _customerUpdateContext = customerUpdateContext;
     _customerDeleteContext = customerDeleteContext;
 }
コード例 #2
0
 public CustomersController(
     IGetCustomerListQuery getCustomerListQuery,
     IGetCustomerDetailQuery getCustomerDetailQuery,
     ICreateCustomerCommand createCustomerCommand,
     IUpdateCustomerCommand updateCustomerCommand,
     IDeleteCustomerCommand deleteCustomerCommand)
 {
     _getCustomerListQuery   = getCustomerListQuery;
     _getCustomerDetailQuery = getCustomerDetailQuery;
     _createCustomerCommand  = createCustomerCommand;
     _updateCustomerCommand  = updateCustomerCommand;
     _deleteCustomerCommand  = deleteCustomerCommand;
 }
コード例 #3
0
 public UpdateCustomerCommand(NorthwindContext context,
                              IGetCustomerDetailQuery getCustomerDetailQuery)
 {
     _context = context;
     _getCustomerDetailQuery = getCustomerDetailQuery;
 }