public WeMerchantGroup Insert()
 {
     string url = WeUtil.GetUrl(WeShopConst.ADD_GROUP_URL);
     WeMerchantGroupFetchData request = new WeMerchantGroupFetchData(this);
     var result = WeUtil.PostToUri(url, request.WriteJson(), new WeGroupId());
     GroupId = result.GroupId;
     if (result.IsError)
     {
         ErrorCode = result.ErrorCode;
         ErrorMsg = result.ErrorMsg;
     }
     return this;
 }
Beispiel #2
0
        public WeMerchantGroup Insert()
        {
            string url = WeUtil.GetUrl(WeShopConst.ADD_GROUP_URL);
            WeMerchantGroupFetchData request = new WeMerchantGroupFetchData(this);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeGroupId());

            GroupId = result.GroupId;
            if (result.IsError)
            {
                ErrorCode = result.ErrorCode;
                ErrorMsg  = result.ErrorMsg;
            }
            return(this);
        }