Пример #1
0
        public async Task <IActionResult> Get([FromServices] IGetAccountsUseCase useCase)
        {
            useCase.SetOutputPort(this);

            await useCase.Execute()
            .ConfigureAwait(false);

            return(this._viewModel !);
        }
Пример #2
0
 public AccountsController(IGetAccountsUseCase useCase)
 {
     this._useCase = useCase;
 }
Пример #3
0
 public AccountController(IGetAccountsUseCase getAccountsUseCase, IArchiveAccountUseCase archiveAccountUseCase, ICreateAccountUseCase createAccountUseCase)
 {
     this.getAccountsUseCase    = getAccountsUseCase;
     this.archiveAccountUseCase = archiveAccountUseCase;
     this.createAccountUseCase  = createAccountUseCase;
 }