Exemple #1
0
 public ActionResult <IEnumerable <Keep> > GetKeepsByVault(int vaultId)
 {
     try
     {
         string userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
         return(Ok(_vks.GetKeepsByVault(vaultId, userId)));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }