Exemple #1
0
 public ActionResult <IEnumerable <Keep> > GetAllKeeps()
 {
     try
     {
         return(Ok(_ks.GetAllKeeps()));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Exemple #2
0
 public ActionResult <List <Keep> > GetAllKeeps()
 {
     try
     {
         List <Keep> keeps = _ks.GetAllKeeps();
         return(Ok(keeps));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }