private Account GetAccount() { var account = AccountCommon.FindById(_id, QueryLevel.Single); if (account.IsEmpty()) { throw new NotFoundObjectException(typeof(Account), _id); } return(account); }
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)); }