public async Task <ActionResult <User> > Get() { if (UserSession.UserId == null) { return(new ActionResult <User>(Problem("É necessário estar logado!"))); } var user = await _userAppService.GetByPassport((int)(UserSession.UserId)); return(user); }