public async Task <IActionResult> Put(string id, [FromBody] ProductsPurchasesViewModel item) { await _documentClient.ReplaceDocumentAsync(UriFactory.CreateDocumentUri(databaseId, collectionId, id), item); return(Ok()); }
public async Task <IActionResult> Post([FromBody] ProductsPurchasesViewModel item) { var response = await _documentClient.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri(databaseId, collectionId), item); return(Ok()); }