コード例 #1
0
        public IEnumerable <Keep> GetByUser(string userId)
        {
            IEnumerable <Keep> keeps = _repo.GetByUser(userId);

            if (keeps != null)
            {
                return(keeps);
            }
            throw new Exception("Are you logged in?");
        }
コード例 #2
0
        internal IEnumerable <Keep> GetByUser(string id, Profile userInfo)
        {
            var res = _repo.GetByUser(id);

            if (res == null)
            {
                throw new System.Exception("Bad id, please check your input and try again");
            }
            return(res);
        }
コード例 #3
0
 public IEnumerable <Keep> GetByUser(string userId)
 {
     return(_repo.GetByUser(userId));
 }