public ActionResult <IEnumerable <Knight> > GetAllKnightsByCastleId(int id) { try { return(Ok(_knightService.GetAllKnightsByCastleId(id))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }