- Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathHomeController.cs
20 lines (18 loc) · 711 Bytes
/
HomeController.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
usingMicrosoft.AspNetCore.Mvc;
namespaceMicrosoft.Teams.Samples.HelloWorld.Web.Controllers
{
// HomeController is responsible for handling requests to the root of the web application.
// It contains the Index action that returns the default view.
publicclassHomeController:Controller
{
// The Index method handles requests to the root URL ("/").
// It returns the default view for the home page of the application.
[Route("")]
publicActionResultIndex()
{
returnView();// Returns the default view for the home page
}
}
}