Example #1
0
 public ActionResult <IEnumerable <VaultKeepViewModel> > GetKeeps(string id)
 {
     try
     {
         return(Ok(_kserv.GetByProfileId(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Example #2
0
 public ActionResult <IEnumerable <Keep> > GetKeepsByProfileId(string id)
 {
     try
     {
         IEnumerable <Keep> keeps = _kserv.GetByProfileId(id);
         return(Ok(keeps));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Example #3
0
        public async Task <ActionResult <IEnumerable <Keep> > > GetKeepsById(string id)
        {
            try
            {
                Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>();

                return(Ok(_ks.GetByProfileId(id)));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }