Exemplo n.º 1
0
        public override DbItem GetItem(int id)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

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

            _dataService.Update(item);
        }
Exemplo n.º 3
0
        public override void Delete(DbRelation relation)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

            _dataService.Delete(relation);
        }