public ActionResult <IEnumerable <Keep> > Get() { try { return(Ok(_repo.GetAll())); } catch (Exception e) { return(BadRequest(e)); } }
public ActionResult <IEnumerable <Keep> > Get() { try { var id = HttpContext.User.FindFirstValue("Id"); return(Ok(_repo.GetAll(id))); } catch (Exception e) { return(BadRequest(e)); } }
public IEnumerable <Keep> Get() { return(db.GetAll()); }
public ActionResult <IEnumerable <Keep> > GetAll() { return(Ok(_keepRepo.GetAll())); }
public IEnumerable <Keep> Get() { return(_repo.GetAll()); }