├── CONTRIBUTING.md ├── Microsoft Graph REST ASPNET Connect ├── Microsoft Graph REST ASPNET Connect │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── Home │ │ │ ├── About.cshtml │ │ │ └── Graph.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ ├── _LoginPartial.cshtml │ │ │ └── _Layout.cshtml │ │ └── Web.config │ ├── Global.asax │ ├── favicon.ico │ ├── Content │ │ ├── test.jpg │ │ └── Site.css │ ├── Scripts │ │ └── _references.js │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── App_Start │ │ ├── FilterConfig.cs │ │ ├── BundleConfig.cs │ │ ├── RouteConfig.cs │ │ └── Startup.Auth.cs │ ├── Helpers │ │ ├── IAuthProvider.cs │ │ └── SampleAuthProvider.cs │ ├── Startup.cs │ ├── Controllers │ │ ├── ErrorController.cs │ │ ├── AccountController.cs │ │ └── HomeController.cs │ ├── Global.asax.cs │ ├── Web.Debug.config │ ├── Web.Release.config │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Models │ │ ├── GraphResources.cs │ │ └── GraphService.cs │ ├── packages.config │ ├── TokenStorage │ │ └── SessionTokenCache.cs │ ├── Web.config │ ├── App_GlobalResources │ │ ├── Resource.Designer.cs │ │ └── Resource.resx │ └── Microsoft Graph REST ASPNET Connect.csproj ├── Nuget.config └── Microsoft Graph REST ASPNET Connect.sln ├── aspnet-connect-rest-sample.yml ├── LICENSE ├── README-Localized ├── README-zh-tw.md ├── README-zh-cn.md ├── README-ja-jp.md ├── README-pt-br.md ├── README-ru-ru.md ├── README-es-es.md ├── README-fr-fr.md └── README-de-de.md ├── .gitignore └── README.md /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/CONTRIBUTING.md -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Microsoft_Graph_REST_ASPNET_Connect.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/favicon.ico -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Content/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Content/test.jpg -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Scripts/_references.js -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-rest-sample/master/Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | 3 | 4 | @using Resources 5 | 6 | @{ 7 | ViewBag.Title = Resource.About; 8 | } 9 |
@Resource.About_Description
-------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace Microsoft_Graph_REST_ASPNET_Connect 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Microsoft Graph REST ASPNET Connect/Microsoft Graph REST ASPNET Connect/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | 3 | 4 | @using Resources 5 | 6 | @{ 7 | ViewBag.Title = Resource.App_Name; 8 | } 9 | 10 |@Html.Raw(Resource.Graph_GetEmailAddress_Instruction)
13 | @using (Html.BeginForm("GetMyEmailAddress", "Home")) 14 | { 15 |@ViewBag.Email24 |
@Html.Raw(Resource.Graph_SendMail_Instruction)
28 | @using (Html.BeginForm("SendEmail", "Home")) 29 | { 30 |@Html.Raw(ViewBag.Message)
47 |