public IEnumerable <Keep> GetByUserId(string user) { IEnumerable <Keep> exists = _repo.GetByUserId(user); if (exists == null) { throw new Exception("No Keep Exists"); } return(exists); }
internal IEnumerable <Keep> Get(string userId) { var exists = _repo.GetByUserId(userId); if (exists == null) { throw new Exception("Invalid Keep Id"); } return(exists); }
public IEnumerable <Keep> GetByUserId(string userId) { IEnumerable <Keep> foundKeep = _repo.GetByUserId(userId); if (foundKeep == null) { throw new Exception("Invalid UserId"); } return(foundKeep); }
internal IEnumerable <Keep> GetByUserId(string userId) { return(_repo.GetByUserId(userId)); }