Пример #1
0
 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));
     }
 }
Пример #2
0
 public IEnumerable <Keep> GetAll(int id)
 {
     return(db.GetAll(id));
 }
Пример #3
0
 public IEnumerable <Keep> GetAll(int userId)
 {
     return(db.GetAll(userId));
 }