public ActionResult <IEnumerable <Vault> > GetVaultByUserId() { try { string userId = HttpContext.User.FindFirstValue("Id"); //stackoverflow return(Ok(_repository.GetVaultByUserId(userId))); } catch (Exception e) { return(BadRequest(e.Message)); } }