public ActionResult <IEnumerable <Garden> > Get() { try { string userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; return(Ok(_gs.Get(userId))); } catch (Exception e) { return(BadRequest(e.Message)); } }