Esempio n. 1
0
 public ActionResult <IEnumerable <Keep> > GetKeepsByVaultId(int id)
 {
     try
     {
         var userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
         return(Ok(_vks.GetByVaultId(id, userId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }