示例#1
0
        public override DbItem GetItem(int id)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

            return(_dataService.GetItem(id));
        }
示例#2
0
        public override void Update(DbItem item)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

            _dataService.Update(item);
        }
示例#3
0
        public override void Delete(DbRelation relation)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

            _dataService.Delete(relation);
        }