I am trying to Insert Data into Azure cosmos db
My code
- [HttpPost]
- public async Task
AddEmployee(Employee employee) - {
- await this.client.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri("Employee", "Items"), employee);
- return RedirectToAction("Employees");
- }


Viswanatha SwamyRank #43 · 33.4K reputationPosted Jun 4, 2020, 7:18 AM EDT
Yogesh VedpathakRank #1,179 · 1.5K reputationPosted Jun 4, 2020, 7:48 AM EDT