public UpdateIssueDetailsCommand(IAuthorisationManager authorisationManager,
                                  ISendNotificationCommand sendNotificationCommand,
                                  IGetUserQuery getUserQuery)
 {
     _authorisationManager    = authorisationManager;
     _sendNotificationCommand = sendNotificationCommand;
     _getUserQuery            = getUserQuery;
 }
 public UsersController(
     IGetUsersQuery listQuery,
     IGetUserQuery singleQuery
     )
 {
     _listQuery   = listQuery;
     _singleQuery = singleQuery;
 }
示例#3
0
 public IActionResult Get(int id,
                          [FromServices] IGetUserQuery query)
 {
     return(Ok(new
     {
         Actor = _actor,
         Executor = _executor.ExecuteQuery(query, id)
     }));
 }
 public UsersController(
     ILogger <UsersController> logger,
     ICreateUserCommand createUserCommand,
     IUpdateUserCommand updateUserCommand,
     IDeleteUserCommand deleteUserCommand,
     IGetUserQuery getUserQuery,
     IGetAllUsersQuery getAllUsersQuery
     )
 {
     this.logger            = logger;
     this.createUserCommand = createUserCommand;
     this.updateUserCommand = updateUserCommand;
     this.deleteUserCommand = deleteUserCommand;
     this.getUserQuery      = getUserQuery;
     this.getAllUsersQuery  = getAllUsersQuery;
 }
示例#5
0
 public UsersController(IAddUserCommand addUserCommand,
                        IEditUserCommand editUserCommand,
                        IDeleteUserCommand deleteUserCommand,
                        IPagingViewModelGenerator pagingViewModelGenerator,
                        IGetUserQuery getUserQuery,
                        ISendNotificationCommand sendNotificationCommand,
                        IEncryptor encryptor,
                        IAuthenticationManager authenticationManager)
 {
     _addUserCommand           = addUserCommand;
     _editUserCommand          = editUserCommand;
     _deleteUserCommand        = deleteUserCommand;
     _pagingViewModelGenerator = pagingViewModelGenerator;
     _getUserQuery             = getUserQuery;
     _sendNotificationCommand  = sendNotificationCommand;
     _encryptor             = encryptor;
     _authenticationManager = authenticationManager;
 }
示例#6
0
 public IActionResult Get(int id, [FromServices] IGetUserQuery query)
 {
     return(Ok(_executor.ExecuteQuery(query, id)));
 }
示例#7
0
 public UserController(IGetUserQuery _userQuery)
 {
     this.userQuery = _userQuery;
 }
示例#8
0
 public IActionResult Get(int id, [FromServices] IGetUserQuery query)
 {
     return(Ok(query.Execute(id)));
 }
示例#9
0
 public IActionResult Get([FromQuery] SearchUserDTO dto, [FromServices] IGetUserQuery query)
 {
     return(Ok(_executor.ExecuteQuery(query, dto)));
 }
 public IActionResult Get([FromQuery] UserSearch search, [FromServices] IGetUserQuery query)
 {
     return(Ok(executor.ExecuteQuery(query, search)));
 }
 public ImpersonationController(IImpersonationManager impersonationManager, IGetUserQuery getUserQuery)
 {
     _impersonationManager = impersonationManager;
     _getUserQuery         = getUserQuery;
 }
示例#12
0
 public BatchStatusUpdateCommand(IAuthorisationManager authorisationManager, IGetUserQuery getUserQuery)
 {
     _authorisationManager = authorisationManager;
     _getUserQuery         = getUserQuery;
 }