Example #1
0
        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);
        }
Example #2
0
 public async Task <IActionResult> Hoshin([FromBody] CredentialsDTO credentials)
 {
     return(new OkObjectResult(await _loginUserUseCase.Execute(credentials.UserName, credentials.Password, credentials.IsLocked)));
 }