forked from PacktPublishing/Learning_DevOps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomeController.cs
More file actions
33 lines (30 loc) · 935 Bytes
/
Copy pathHomeController.cs
File metadata and controls
33 lines (30 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using appFeatureFlags.Models;
namespace appFeatureFlags.Controllers
{
public class HomeController : Controller
{
private readonly ShowBoxHome showboxHome;
public HomeController (ShowBoxHome showboxHome){
this.showboxHome = showboxHome;
}
public IActionResult Index()
{
return View(new HomeModel{ShowBoxHome = this.showboxHome.Value});
}
public IActionResult Privacy()
{
return View();
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
}