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