示例#1
0
 public ActionResult <IEnumerable <VaultKeepViewModel> > GetKeeps(int id)
 {
     try
     {
         string userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
         return(Ok(_vks.getKeepsByVaultId(id, userId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     };
 }