Exemplo n.º 1
0
 public ActionResult <IEnumerable <Keep> > GetCreated()
 {
     try
     {
         var userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
         return(Ok(_ks.GetCreated(userId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     };
 }