40 lines
882 B
C#
40 lines
882 B
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Diagnostics;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Microsoft.Extensions.Logging;
|
||
|
|
||
|
namespace DOIOU.Server.Controllers
|
||
|
{
|
||
|
[Route("/info")]
|
||
|
public class InfoController : Controller
|
||
|
{
|
||
|
private readonly ILogger<InfoController> _logger;
|
||
|
|
||
|
public InfoController(ILogger<InfoController> logger)
|
||
|
{
|
||
|
_logger = logger;
|
||
|
}
|
||
|
|
||
|
[HttpGet]
|
||
|
public IActionResult Index()
|
||
|
{
|
||
|
return View();
|
||
|
}
|
||
|
|
||
|
[HttpGet("faq")]
|
||
|
public IActionResult FAQ()
|
||
|
{
|
||
|
return View("FAQ");
|
||
|
}
|
||
|
|
||
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||
|
public IActionResult Error()
|
||
|
{
|
||
|
return View("Error!");
|
||
|
}
|
||
|
}
|
||
|
}
|