15 |
16 | |
17 | @Html.DisplayNameFor(model => model.Id)
18 | |
19 |
20 | @Html.DisplayNameFor(model => model.Title)
21 | |
22 |
23 | @Html.DisplayNameFor(model => model.Priority)
24 | |
25 |
26 | @Html.DisplayNameFor(model => model.Status)
27 | |
28 |
29 | @Html.DisplayNameFor(model => model.PercentComplete)
30 | |
31 |
32 | @Html.DisplayNameFor(model => model.StartDate)
33 | |
34 |
35 | @Html.DisplayNameFor(model => model.EndDate)
36 | |
37 |
38 | @Html.DisplayNameFor(model => model.Notes)
39 | |
40 | |
41 |
42 |
43 | @foreach (var item in Model)
44 | {
45 |
46 | |
47 | @Html.DisplayFor(modelItem => item.Id)
48 | |
49 |
50 | @Html.DisplayFor(modelItem => item.Title)
51 | |
52 |
53 | @Html.DisplayFor(modelItem => item.Priority)
54 | |
55 |
56 | @Html.DisplayFor(modelItem => item.Status)
57 | |
58 |
59 | @Html.DisplayFor(modelItem => item.PercentComplete)
60 | |
61 |
62 | @Html.DisplayFor(modelItem => item.StartDate)
63 | |
64 |
65 | @Html.DisplayFor(modelItem => item.EndDate)
66 | |
67 |
68 | @Html.DisplayFor(modelItem => item.Notes)
69 | |
70 |
71 | }
72 |
73 |
74 |
75 |
53 | @RenderBody()
54 |
55 |
58 |
59 |
60 | @Scripts.Render("~/bundles/jquery")
61 | @Scripts.Render("~/bundles/bootstrap")
62 | @RenderSection("scripts", required: false)
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Microsoft-Graph-ExcelRest-ToDo/Controllers/HomeController.cs:
--------------------------------------------------------------------------------
1 | //Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license.
2 | //See LICENSE in the project root for license information.
3 |
4 | using System;
5 | using System.Net.Http;
6 | using System.Net.Http.Headers;
7 | using System.Web.Mvc;
8 | using Microsoft_Graph_ExcelRest_ToDo.TokenStorage;
9 | using System.Configuration;
10 | using System.Threading.Tasks;
11 | using Microsoft_Graph_ExcelRest_ToDo.Helpers;
12 |
13 | namespace Microsoft_Graph_ExcelRest_ToDo.Controllers
14 | {
15 | public class HomeController : Controller
16 | {
17 | public ActionResult Index()
18 | {
19 | return View();
20 | }
21 |
22 | public ActionResult About()
23 | {
24 | ViewBag.Message = "Your application description page.";
25 |
26 | return View();
27 | }
28 |
29 | public ActionResult Contact()
30 | {
31 | ViewBag.Message = "Your contact page.";
32 |
33 | return View();
34 | }
35 |
36 | [Authorize]
37 | public async Task