Example #1
0
 public void Update(System.Guid id, URSA.Example.WebApplication.Data.Person person)
 {
     System.Collections.Generic.IDictionary<string, object> uriArguments = new System.Collections.Generic.Dictionary<string, object>();
     var accept = new string[0];
     var contentType = new string[] {
         "application/xml",
         "application/json",
         "text/xml" };
     uriArguments["id"] = id;
     Call(Verb.PUT, "/api/person/{id}", accept, contentType, uriArguments, person);
 }
Example #2
0
 public System.Guid Create(URSA.Example.WebApplication.Data.Person person)
 {
     System.Collections.Generic.IDictionary<string, object> uriArguments = new System.Collections.Generic.Dictionary<string, object>();
     var accept = new string[] {
         "application/json",
         "text/xml",
         "application/xml" };
     var contentType = new string[] {
         "application/json",
         "text/xml",
         "application/xml" };
     var result = Call<System.Guid>(Verb.POST, "/api/person#POSTPerson", accept, contentType, uriArguments, person);
     return result;
 }