public async Task <IActionResult> Get([FromServices] IGetAccountsUseCase useCase) { useCase.SetOutputPort(this); await useCase.Execute() .ConfigureAwait(false); return(this._viewModel !); }
public AccountsController(IGetAccountsUseCase useCase) { this._useCase = useCase; }
public AccountController(IGetAccountsUseCase getAccountsUseCase, IArchiveAccountUseCase archiveAccountUseCase, ICreateAccountUseCase createAccountUseCase) { this.getAccountsUseCase = getAccountsUseCase; this.archiveAccountUseCase = archiveAccountUseCase; this.createAccountUseCase = createAccountUseCase; }