public ActionResult <IEnumerable <VaultKeep> > Get() { try { return(Ok(_vks.GetAll())); } catch (Exception e) { return(BadRequest(e.Message)); }; }
public ActionResult <IEnumerable <VaultKeepVM> > GetAll() { try { string userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; return(Ok(_vks.GetAll(userId))); } catch (Exception e) { return(BadRequest(e.Message)); } }