public ActionResult <IEnumerable <VaultKeep> > Get()
 {
     try
     {
         return(Ok(_vks.GetAll()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     };
 }
Пример #2
0
 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));
     }
 }