Join Chander Dhall for an in-depth discussion in this video Delete, part of NoSQL Development with DocumentDB in Azure.
- [Narrator] So the next thing we'll work on…is going to be delete, so now that I have delete,…I should not be able to see this again.…So that means it needs to go all the way…to document dd and remove that record from there.…And then I should come back to the display page.…So first things first, I need to go to my…product controller and then add action name,…in this case it's going to be delete.…And then create my async controller…which will return a task of action result.…And this is going to be delete async.…
I'm going to pass in the id, so again, if id's…null, we're going to respond back with a bad request.…And if the id is not null, then we're going to…go ahead and say product equals await repository.get…products, async, in this case item async.…And then pass in id and then if product is null, then say…should it be not found, otherwise return the product.…This road would really take us…to a difference screen altogether.…
And now we're going to create the other one which…will actually take care of deleting, action name,…
- Back-end scaling fundamentals
- Fallacies of distributed computing
- Consistency models
- Data migration
- DocumentDB with .NET and Node.js
Skill Level Intermediate
1. Backend Scaling Fundamentals
2. Get Started with DocumentDB
3. DocumentDB with .NET
4. DocumentDB with Node.js
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.