Exemplo n.º 1
0
        public ActionResult <IEnumerable <Keep> > Get(int vaultId)
        {
            IEnumerable <Keep> results = _vkr.GetVaultKeeps(vaultId);

            if (results == null)
            {
                return(BadRequest());
            }
            return(Ok(results));
        }
Exemplo n.º 2
0
        public ActionResult <IEnumerable <Keep> > GetVaultKeeps(int vaultId)
        {
            var userId = HttpContext.User.Identity.Name;
            IEnumerable <Keep> result = _repo.GetVaultKeeps(vaultId, userId);

            if (result != null)
            {
                return(Ok(result));
            }
            return(BadRequest());
        }
Exemplo n.º 3
0
 public IEnumerable <Keep> GetVaultKeeps(string vaultId)
 {
     return(_repo.GetVaultKeeps(vaultId));
 }