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 9. User Registration and Account Edit

In this chapter, we'll be adding a couple more account-related features that are still missing: user registration and edit user info.

User Registration

To implement a User Registration logic, we need to take care of the following tasks:

  • Create a UserViewModel to send and receive data from and to the Web API, just like we did with items back in Chapter 2, ASP.NET Controllers and Server-Side Routes
  • Add the Get, Add, Update, and Delete RESTful methods to the AccountsController Web API interface
  • Handle all these methods in Angular 2 by updating the AuthService class
  • Create a UserEditComponent class in our Angular 2 client to host the registration form, hooking it to the AuthService accordingly
  • Update the other Angular 2 components, together with the existing client-side routing structure, in order to properly integrate it within the application workflow

Let's get it done.

UserViewModel

Right-click on the /ViewModels/ folder and add a new...

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