Esempio n. 1
0
        public async Task <ActionResult> DeleteConfirmedAsync([Bind("Id, Category")] string id,
                                                              string category)
        {
            await CosmosService.DeleteItemAsync(id, category);

            return(this.RedirectToAction("Index"));
        }
Esempio n. 2
0
        public async Task DeleteItemAsync()
        {
            var post = new Post {
                PostId = 99999999
            };

            var id = await CosmosService.AddItemToContainerAsync(post);

            await CosmosService.DeleteItemAsync(id, post.PostId.Value.ToString());
        }