Ejemplo n.º 1
0
        public static void regist()
        {
            var dic = new Dictionary <string, string>
            {
                { "UserName", "驼峰" },
                { "PassWord", "ttttttt" }
            };
            var flag = HttpRequestUtil.HttpPost("api/User/put", dic);

            Console.WriteLine(flag);
        }
Ejemplo n.º 2
0
        public static void addTravelParts()
        {
            var dic = new Dictionary <string, string>
            {
                { "userId", "2" },
                { "travelId", "1" },
                { "parttype", "1" },
                { "description", "呼伦贝尔大草原" },
                { "area", "莫日格拉河" },
                { "partUrl", "http://img10.fblife.com/attachments/20151116/14476335102611.jpg" },
            };
            var flag = HttpRequestUtil.HttpPost("travels/AddTravelPart", dic);

            Console.WriteLine(flag);
        }