public NRestResult <UserCreditBalance> GetNoRevenueEntryUserCreditBalanceById(
                Search.UserCredits.GetActiveById value)
            {
                NRestResult <UserCreditBalance> ret;
                NRestClient client = NRestClient.CreateLocalClient();

                if (null == client)
                {
                    ret = new NRestResult <UserCreditBalance>();
                    ret.RestInvalidConfig();
                    return(ret);
                }

                if (null != value)
                {
                    ret = client.Execute <UserCreditBalance>(
                        RouteConsts.Credit.GetNoRevenueEntryUserCreditBalanceById.Url, value);
                }
                else
                {
                    ret = new NRestResult <UserCreditBalance>();
                    ret.ParameterIsNull();
                    ret.data = null;
                }
                return(ret);
            }
        public NDbResult <UserCreditBalance> GetNoRevenueEntryUserCreditBalanceById(
            [FromBody] Search.UserCredits.GetActiveById value)
        {
            NDbResult <UserCreditBalance> result;

            if (null == value)
            {
                result = new NDbResult <UserCreditBalance>();
                result.ParameterIsNull();
            }
            else
            {
                result = UserCreditBalance.GetNoRevenueEntryUserCreditBalanceById(
                    value.UserId, value.PlazaGroupId);
            }
            return(result);
        }