Skip to content

Instantly share code, notes, and snippets.

@aykuttasil
Created April 29, 2019 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aykuttasil/71b3a33f3ee562826efbc3dacf23001c to your computer and use it in GitHub Desktop.
Save aykuttasil/71b3a33f3ee562826efbc3dacf23001c to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using aspnetcore_filter.Models;
using aspnetcore_filter.Filters;
namespace aspnetcore_filter.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
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 });
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment