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