public ActionResult <Vault> Get(int id) { try { VaultKeep data = new VaultKeep(); data.VaultId = id; data.UserId = HttpContext.User.FindFirstValue("Id"); return(Ok(_Repo.OpenVault(data))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Vault> Get(int id) { try { VaultKeep data = new VaultKeep(); data.VaultId = id; data.UserId = HttpContext.User.FindFirstValue("Id"); return(Ok(_Repo.OpenVault(data))); } catch (Exception e) { return(BadRequest(e.Message)); } }