Using Dependency Injection to Update A User's Profile

In this lesson, we'll learn how to allow users to edit their profiles. We'll also cover how we can inject the HttpContext into a service instance using Dependency Injection (DI).

May 29
9m 46s

Developer, dog lover, and burrito eater. Currently teaching AdonisJS, a fully featured NodeJS framework, and running Adocasts where I post new lessons weekly. Professionally, I work with JavaScript, .Net C#, and SQL Server.


Burlington, KY

🕰️ Chapters
00:00 - Defining Our Profile Edit Page
00:50 - Adding Textarea Support To Our Form Input Component
01:27 - Defining Our Profile Edit Form Fields
02:45 - Profiles Update PUT Route Definition
03:20 - Defining Our Profiles Update Validator
05:07 - Accessing HttpContext Within Our Service Using Dependency Injection
07:11 - Injecting Our Service Into Our Controller Using Dependency Injection
08:20 - Updating The User's Profile
09:14 - Spoofing PUT Request
09:30 - Testing Our Profile Update

Join The Discussion! (0 Comments)

Please sign in or sign up for free to join in on the dicussion.

robot comment bubble

Be the first to Comment!