Exemplo n.º 1
0
 public ActionResult <IEnumerable <Keep> > Get(int id)
 {
     try
     {
         var userid = HttpContext.User.FindFirstValue("Id");
         return(Ok(_repo.GetALL(userid, id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }