public ActionResult <IEnumerable <Vault> > Get() { try { var userId = HttpContext.User.FindFirstValue("Id"); return(Ok(_Repo.GetVaults(userId))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <IEnumerable <Vault> > GetVaults(int id) { return(Ok(_vr.GetVaults(id))); }
public IEnumerable <Vault> Get() { string userId = HttpContext.User.Identity.Name; return(_repo.GetVaults(userId)); }