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));
     }
 }
Esempio n. 2
0
 public IEnumerable <Keep> GetAll(int id)
 {
     return(db.GetAll(id));
 }
Esempio n. 3
0
 public IEnumerable <Keep> GetAll(int userId)
 {
     return(db.GetAll(userId));
 }