Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Updating the Layout Page

Before we test our changes, let's update the layout page so that users will know when they're signed-in. We'll update the top menu to display "Register" and "Sign In" buttons if the user isn't authenticated, and "Add Entry" and "Sign Out" buttons if the user is authenticated.

Go ahead and open the "_Layout.cshtml" file located in the "Views/Shared" folder.

Reworking the Helper Method...