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

Commit

Permalink
await on async method (#246)
Browse files Browse the repository at this point in the history
* Fix for Device Model validation
  • Loading branch information
maple10001 authored and hathind-ms committed Sep 4, 2018
1 parent a5da099 commit a290ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebService/v1/Controllers/SimulationsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task<SimulationApiModel> PostAsync(
[FromBody] SimulationApiModel simulationApiModel,
[FromQuery(Name = "template")] string template = "")
{
simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);
await simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);

if (simulationApiModel == null)
{
Expand All @@ -97,7 +97,7 @@ public async Task<SimulationApiModel> PutAsync(
[FromBody] SimulationApiModel simulationApiModel,
string id = "")
{
simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);
await simulationApiModel?.ValidateInputRequestAsync(this.log, this.connectionStringManager);

if (simulationApiModel == null)
{
Expand Down

0 comments on commit a290ef3

Please sign in to comment.