public async Task <ActionResult <AuthDto> > SignIn([FromBody] SignIn command) { await _commandDispatcher.SendAsync(command); var token = _authTokensCache.Get(command.Username); return(Ok(token)); }
public async Task <IActionResult> SignIn(SignInCommand command) { await _commandDispatcher.SendAsync(command); var dto = _cache.Get(command.Email); return(Ok(dto)); }