예제 #1
0
        private Account GetAccount()
        {
            var account = AccountCommon.FindById(_id, QueryLevel.Single);

            if (account.IsEmpty())
            {
                throw new NotFoundObjectException(typeof(Account), _id);
            }
            return(account);
        }
예제 #2
0
        protected override DTObject DynamicInvoke(dynamic arg)
        {
            var account = AccountCommon.FindById(arg.Id, QueryLevel.None);

            return(DTObject.Create("{id,name,email,password,status:{isEnabled},roles:[{id,name}]}", account));
        }