Created
July 9, 2021 04:40
-
-
Save kshitijcode/f830658db1b4831fefee4df5a128e9c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public async Task<IActionResult> Post([FromBody] WeatherChange weatherChange) | |
| { | |
| try | |
| { | |
| await _daprClient.SaveStateAsync("mongostatestore", "weather", weatherChange); | |
| } | |
| catch (Exception e) | |
| { | |
| return BadRequest(); | |
| } | |
| return Ok(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment