public ActionResult <House> Delete(int id) { try { string userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; return(Ok(_hs.delete(id, userId))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }