O'Reilly logo

ASP.NET Core: Cloud-ready, Enterprise Web Application Development by James Singleton, Valerio De Sanctis, Mugilan T. S. Ragupathi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Edit Account

Out of the three RESTful methods, we implemented in our Web API and AuthService interfaces, the whole User Registration view only took one. The Get and the Update methods are still there, waiting for us to make use of them.

The best thing we can do to test them both is to implement an Edit Account view to give our users the chance to change a limited set of their account info, such as e-mail address, password, and display name.

Luckily enough, we already did most of the job: the UserEditComponent already does most of what we need; we just have to tweak it a bit more so it can be used to update an existing account as well as register a new one.

Two routes, one component

In contrast with what we did for the ItemDetailEditComponent, we don't ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required