This is awesome... Only one question. We have success case and failure case covered in if...else block. then try..catch is necessary?if yes, then what are other cases(Possible cases for raising exception)?
Hi Venkat, i have one query. In your MVC videos "Part 23 Why deleting database records using get request is bad" you said this is bad. But here, we are deleting db using Delete request. But this is still calling the [HTTPGet] of the Delete method(which means it is a Get request) as there's no HttpPost method for the same. How can this be achieved using Post request? Are there any decorations like [httpget]/[httpPost] in web-api as such?
I'm not an expert,but basically you just need to host the compiled project on a server you rent. Or if it's simple enough, get raspberry pi and host on that.
There is a massive difference between Angular JS 1 and Angular 2. However, there is no much difference between Angular 2, Angular 4 and Angular 5. The way we build angular applications using Angular 2, 4 or 5 is very identical. Thank following video explains the difference between difference angular versions released so far. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bAx2LgQLkl8.html If you are starting to learn Angular, I suggest start with Angular 2 at the following link. ru-vid.com/group/PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular CRUD tutorial at the following link uses Angular 5 ru-vid.com/group/PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 I believe Angular CLI is a great tool to increase your productivity. So I suggest learn Angular CLI as well. ru-vid.com/group/PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Hope you will find these resources useful to learn Angular.
Hacky workaround using the same method would be to check if ID is something like -whateverNumberYouWantToUseToDeleteEverything, not negative, but exact number, preferably long if you want to be the only one knowing it. Basically a negative password which is just numbers (List CAN'T have negative index, just like array, so you won't accidentally delete everything.) For something safer and better, you'll have to think about it more, I thought of this in like 5 seconds.
Previous: public httpResponseMessage Delete(int code) Changed to this: public httpResponseMessage Delete(int id) make the parameter "id". then this should work.