Yogesh Vedpathak

Yogesh Vedpathak

  • 682
  • 1.4k
  • 188.3k

The remote name could not be resolved: '--cosmos.azure.com'

Jun 2 2020 2:01 PM
I am trying to Insert Data into Azure cosmos db
 
My code
  1. [HttpPost]  
  2. public async Task<ActionResult> AddEmployee(Employee employee)  
  3. {  
  4. await this.client.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri("Employee""Items"), employee);  
  5. return RedirectToAction("Employees");  
  6. }  

Answers (2)