コード例 #1
0
ファイル: AuthDataService.cs プロジェクト: TimotejRybar/sdb
        public override DbItem GetItem(int id)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

            return(_dataService.GetItem(id));
        }
コード例 #2
0
ファイル: AuthDataService.cs プロジェクト: TimotejRybar/sdb
        public override void Update(DbItem item)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

            _dataService.Update(item);
        }
コード例 #3
0
ファイル: AuthDataService.cs プロジェクト: TimotejRybar/sdb
        public override void Delete(DbRelation relation)
        {
            if (!IsAuthenticated)
            {
                throw AuthException.NotLoggedIn();
            }

            _dataService.Delete(relation);
        }