コード例 #1
0
ファイル: BaseProfileService.cs プロジェクト: drawcode/bom
        //------------------------------------------------------------------------------
        public virtual void CountCountryByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

            ResponseCountryInt wrapper = new ResponseCountryInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "country/count/by-uuid";

            int i = api.CountCountryByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
コード例 #2
0
ファイル: BaseProfileService.cs プロジェクト: drawcode/bom
        //------------------------------------------------------------------------------
        public virtual void CountCountry()
        {
            ResponseCountryInt wrapper = new ResponseCountryInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "country/count";

            int i = api.CountCountry(
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }