public void Update(System.Guid id, Vocab.Product product) { System.Collections.Generic.IDictionary <string, object> uriArguments = new System.Collections.Generic.Dictionary <string, object>(); var accept = new string[0]; var contentType = new string[] { "application/rdf+xml", "text/turtle", "application/ld+json", "application/owl+xml" }; uriArguments["id"] = id; Call(Verb.PUT, "/api/product/{id}", accept, contentType, uriArguments, product); }
public System.Guid Create(Vocab.Product product) { System.Collections.Generic.IDictionary <string, object> uriArguments = new System.Collections.Generic.Dictionary <string, object>(); var accept = new string[] { "application/rdf+xml", "text/turtle", "application/ld+json", "application/owl+xml" }; var contentType = new string[] { "application/rdf+xml", "text/turtle", "application/ld+json", "application/owl+xml" }; var result = Call <System.Guid>(Verb.POST, "/api/product#POSTProduct", accept, contentType, uriArguments, product); return(result); }