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