Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ASP.NET Core: Cloud-ready, Enterprise Web Application Development

You're reading from   ASP.NET Core: Cloud-ready, Enterprise Web Application Development Create fast, scalable, and high-performance applications with C# and ASP.NET Core

Arrow left icon
Product type Course
Published in Jun 2017
Publisher Packt
ISBN-13 9781788296526
Length 1083 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Mugilan T. S. Ragupathi Mugilan T. S. Ragupathi
Author Profile Icon Mugilan T. S. Ragupathi
Mugilan T. S. Ragupathi
Valerio De Sanctis Valerio De Sanctis
Author Profile Icon Valerio De Sanctis
Valerio De Sanctis
James Singleton James Singleton
Author Profile Icon James Singleton
James Singleton
Arrow right icon
View More author details
Toc

Chapter 5. Persisting Changes

In the previous chapter, we replaced our dummy data provider with a real data provider built upon EF Core using a code-first approach. Now that we have data persistence, we're ready to entrust our users with the ability to interact with our application; this means that we can implement some much needed features such as login view, access control, and server-side sessions, as well as specific views to create, edit, or delete our entities, whether they are Items, Comments, or Users, ensuring that all the changes will be reflected in the database.

In this chapter we will take care of the latter, leaving the authentication features out; we will address these later on, as they will have their own dedicated chapter.

Add, update, and delete items

The first thing we'll do is to implement the add, update, and delete methods for our Web API's ItemsController. We'll adhere to RESTful conventions and good practices, using the proper HTTP verb...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image