示例#1
0
        public async Task <bool> CateNew(string label, string desc)
        {
            EsiToCategory obj = new EsiToCategory();

            obj.CateLabel = label.Trim();
            obj.CateDesc  = desc;
            //obj.CateName = label.Trim();
            //obj.CateOrder = 0;
            //obj.CateState = 0;
            //obj.CateTname = label;
            //obj.CateParent = null;
            //obj.EsiFields = null;

            HttpResponseMessage response
                = client.PostAsJsonAsync("EsiCategories", obj).Result;

            // response.EnsureSuccessStatusCode();
            //if (response.IsSuccessStatusCode)
            //{

            //}
            // return URI of the created resource.
            return(response.IsSuccessStatusCode);
        }
示例#2
0
 public FrmItemMode(ref EsiToCategory cateIn)
 {
     cate = cateIn;
     InitializeComponent();
 }