public ActionResult <IEnumerable <House> > GetHousesByUser() { try { string userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; return(Ok(_hs.GetByUserId(userId))); } catch (Exception err) { return(BadRequest(err.Message)); } }