コード例 #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
ファイル: KeepsService.cs プロジェクト: BrandonReninger/Keepr
 internal IEnumerable <Keep> GetByUserId(string userId)
 {
     return(_repo.GetByUserId(userId));
 }