public async Task <IActionResult> Login( [FromServices] ILoginUserUseCase useCase, [FromServices] LoginUserPresenter presenter, [FromBody] LoginParams input) { await useCase.Execute(new LoginUserInput(input.Name, input.Password)); return(presenter.ViewModel); }
public async Task <IActionResult> Hoshin([FromBody] CredentialsDTO credentials) { return(new OkObjectResult(await _loginUserUseCase.Execute(credentials.UserName, credentials.Password, credentials.IsLocked))); }