Exemplo n.º 1
0
        public ActionResult <IEnumerable <Keep> > GetMyKeeps()
        {
            string             UserId  = HttpContext.User.Identity.Name;
            IEnumerable <Keep> results = _kr.GetAllMyKeeps(UserId);

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