예제 #1
0
 public ActionResult <IEnumerable <Vault> > GetVaultByUserId()
 {
     try
     {
         string userId = HttpContext.User.FindFirstValue("Id"); //stackoverflow
         return(Ok(_repository.GetVaultByUserId(userId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }