Skip to content

Commit 4c10e29

Browse files
author
Robert Anderson
committed
Updating VIPR to latest; Fixing a bug in base entity create operations
1 parent f0d43ea commit 4c10e29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Templates/CSharp/Base/EntityRequest.Base.template.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public string GetEntityCreateAsyncMethod(OdcmClass odcmClass)
156156
stringBuilder.Append(Environment.NewLine);
157157
stringBuilder.AppendFormat(" this.ContentType = \"{0}\";", templateWriter.jsonContentType);
158158
stringBuilder.Append(Environment.NewLine);
159-
stringBuilder.Append(" this.Method = \"PUT\";");
159+
stringBuilder.Append(" this.Method = \"POST\";");
160160
stringBuilder.Append(Environment.NewLine);
161161
stringBuilder.AppendFormat(" var newEntity = await this.SendAsync<{0}>({1}ToCreate, cancellationToken).ConfigureAwait(false);", entityName, lowerCaseEntityName);
162162
stringBuilder.Append(Environment.NewLine);

0 commit comments

Comments
 (0)