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

            if (results == null)
            {
                return(BadRequest());
            }
            return(Ok(results));
        }
Example #2
0
 public ActionResult <IEnumerable <Keep> > Get()
 {
     try
     {
         return(Ok(_repo.GetALL()));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }
Example #3
0
 public ActionResult <IEnumerable <Keep> > Get()
 {
     try
     {
         string userId = HttpContext.User.FindFirstValue("Id");
         return(Ok(_repo.GetALL(userId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }