Exemplo n.º 1
0
        public async Task <IActionResult> Put(string id, [FromBody] Personal_informationViewModel item)
        {
            await _documentClient.ReplaceDocumentAsync(UriFactory.CreateDocumentUri(databaseId, collectionId, id),
                                                       item);

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Post([FromBody] Personal_informationViewModel item)
        {
            var response = await _documentClient.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri(databaseId, collectionId), item);

            return(Ok());
        }