public ActionResult <IEnumerable <Keep> > Get(int vaultId) { IEnumerable <Keep> results = _vkr.GetVaultKeeps(vaultId); if (results == null) { return(BadRequest()); } return(Ok(results)); }
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()); }
public IEnumerable <Keep> GetVaultKeeps(string vaultId) { return(_repo.GetVaultKeeps(vaultId)); }