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
, andDelete
RESTful methods to theAccountsController
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 theAuthService
accordingly - Update the other ...
Get ASP.NET Core: Cloud-ready, Enterprise Web Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.