Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit a290ef3

Browse files
maple10001hathind-ms
authored andcommitted
await on async method (#246)
* Fix for Device Model validation
1 parent a5da099 commit a290ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebService/v1/Controllers/SimulationsController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public async Task<SimulationApiModel> PostAsync(
7373
[FromBody] SimulationApiModel simulationApiModel,
7474
[FromQuery(Name = "template")] string template = "")
7575
{
76-
simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);
76+
await simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);
7777

7878
if (simulationApiModel == null)
7979
{
@@ -97,7 +97,7 @@ public async Task<SimulationApiModel> PutAsync(
9797
[FromBody] SimulationApiModel simulationApiModel,
9898
string id = "")
9999
{
100-
simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);
100+
await simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);
101101

102102
if (simulationApiModel == null)
103103
{

0 commit comments

Comments
 (0)