Пример #1
0
        public IEnumerable <Keep> GetByUserId(string user)
        {
            IEnumerable <Keep> exists = _repo.GetByUserId(user);

            if (exists == null)
            {
                throw new Exception("No Keep Exists");
            }
            return(exists);
        }
Пример #2
0
        internal IEnumerable <Keep> Get(string userId)
        {
            var exists = _repo.GetByUserId(userId);

            if (exists == null)
            {
                throw new Exception("Invalid Keep Id");
            }
            return(exists);
        }
Пример #3
0
        public IEnumerable <Keep> GetByUserId(string userId)
        {
            IEnumerable <Keep> foundKeep = _repo.GetByUserId(userId);

            if (foundKeep == null)
            {
                throw new Exception("Invalid UserId");
            }
            return(foundKeep);
        }
Пример #4
0
 internal IEnumerable <Keep> GetByUserId(string userId)
 {
     return(_repo.GetByUserId(userId));
 }