Exemplo n.º 1
0
 public ActionResult <IEnumerable <VaultKeepViewModel> > GetDTOKeepsByVaultId(int vaultId)
 {
     try
     {
         string userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
         return(Ok(_vks.GetDTOKeepsByVaultId(vaultId, userId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }