Example #1
0
 public ActionResult <IEnumerable <Castle> > GetAllKnights(int id)
 {
     try
     {
         return(Ok(_kService.getKnights(id)));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }