public ActionResult <IEnumerable <VaultKeepViewModel> > GetKeeps(string id) { try { return(Ok(_kserv.GetByProfileId(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <IEnumerable <Keep> > GetKeepsByProfileId(string id) { try { IEnumerable <Keep> keeps = _kserv.GetByProfileId(id); return(Ok(keeps)); } catch (Exception e) { return(BadRequest(e.Message)); } }
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)); } }