This sample app shows how to use the Microsoft Graph API to access a user's data from ASP.NET Core
13 | @if (User.Identity.IsAuthenticated) 14 | { 15 |Use the navigation bar at the top of the page to get started.
17 | } 18 | else 19 | { 20 | Click here to sign in 21 | } 22 |@alert.Message
18 | @if (!string.IsNullOrEmpty(alert.ActionUrl)) 19 | { 20 | @alert.ActionText 21 | } 22 | @if (!string.IsNullOrEmpty(alert.DebugInfo)) 23 | { 24 |@alert.DebugInfo
25 | }
26 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /SnippetsApp/Models/CalendarViewEvent.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | //| Date | 21 |Time | 22 |Event | 23 |
|---|
25 | }
26 |
31 | Modified:
32 |
@Model.Description
28 | } 29 |@Model.Body.Content
66 | } 67 |@Model.Group.Description
23 |