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