public ActionResult <IEnumerable <Keep> > Get()
        {
            IEnumerable <Keep> results = _kr.GetALL();

            if (results == null)
            {
                return(BadRequest());
            }
            return(Ok(results));
        }
Пример #2
0
        public ActionResult <IEnumerable <Keep> > Get()
        {
            IEnumerable <Keep> results = _kr.GetALL();

            if (results == null)
            {
                return(BadRequest("Unable to GETALL: Results are not there."));
            }
            return(Ok(results));
        }