public UpdateIssueDetailsCommand(IAuthorisationManager authorisationManager, ISendNotificationCommand sendNotificationCommand, IGetUserQuery getUserQuery) { _authorisationManager = authorisationManager; _sendNotificationCommand = sendNotificationCommand; _getUserQuery = getUserQuery; }
public UsersController( IGetUsersQuery listQuery, IGetUserQuery singleQuery ) { _listQuery = listQuery; _singleQuery = singleQuery; }
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; }
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; }
public IActionResult Get(int id, [FromServices] IGetUserQuery query) { return(Ok(_executor.ExecuteQuery(query, id))); }
public UserController(IGetUserQuery _userQuery) { this.userQuery = _userQuery; }
public IActionResult Get(int id, [FromServices] IGetUserQuery query) { return(Ok(query.Execute(id))); }
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; }
public BatchStatusUpdateCommand(IAuthorisationManager authorisationManager, IGetUserQuery getUserQuery) { _authorisationManager = authorisationManager; _getUserQuery = getUserQuery; }