diff --git a/aspnetcore/security/authorization/secure-data/samples/final2/Pages/Contacts/Edit.cshtml.cs b/aspnetcore/security/authorization/secure-data/samples/final2/Pages/Contacts/Edit.cshtml.cs index ee99e4066e..9ee6d625f6 100644 --- a/aspnetcore/security/authorization/secure-data/samples/final2/Pages/Contacts/Edit.cshtml.cs +++ b/aspnetcore/security/authorization/secure-data/samples/final2/Pages/Contacts/Edit.cshtml.cs @@ -54,7 +54,7 @@ namespace ContactManager.Pages.Contacts } // Fetch Contact from DB to get OwnerID. - var contact = await Context + var contact = await Context.Contact .FirstOrDefaultAsync(m => m.ContactId == id); if (contact == null)