// [HttpGet("keeps/user/:userId")] public ActionResult <IEnumerable <Keep> > GetByUserId() { try { var id = HttpContext.User.FindFirstValue("Id"); // value.userId = id; return(Ok(_repo.Get(id))); } catch (Exception e) { return(BadRequest(e)); } }