コード例 #1
0
        public Response Post(PostedData data)
        {
            var response = new Response { WasSuccessfull = true };
            if (data == null)
            {
                response.Result = "POST with complex object -> NULL";
                response.WasSuccessfull = false;
                return response;
            }
            if (string.IsNullOrEmpty(data.argOne) == null && string.IsNullOrEmpty(data.argTwo) == null && string.IsNullOrEmpty(data.argThree) == null)
            {
                response.Result = "POST with complex object -> All Datamembers were null";
                response.WasSuccessfull = false;
                return response;
            }
            response.Result = string.Format("POST with complex object -> Arg1:{0}, Arg2: {1}, Arg3:{2}", data.argOne, data.argTwo, data.argThree);

            return response;
        }
コード例 #2
0
 public Response PutJunk(PostedData data)
 {
     var result = Post(data);
     result.Result = "PUT -> " + result.Result;
     return result;
 }