-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathStatusCodeController.cs
More file actions
43 lines (40 loc) · 1.4 KB
/
StatusCodeController.cs
File metadata and controls
43 lines (40 loc) · 1.4 KB
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
34
35
36
37
38
39
40
41
42
43
using ExpressBase.Common;
using ExpressBase.Common.Constants;
using ExpressBase.Common.Extensions;
using ExpressBase.Common.Structures;
using ExpressBase.Objects.Helpers;
using ExpressBase.Objects.ServiceStack_Artifacts;
using ExpressBase.Web.BaseControllers;
using ExpressBase.Web2.Models;
using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using ServiceStack;
using ServiceStack.Auth;
using ServiceStack.Redis;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.IO;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace ExpressBase.Web.Controllers
{
[EnableCors("AllowSpecificOrigin")]
public class StatusCodeController : EbBaseExtController
{
public StatusCodeController(IServiceClient _ssclient, IRedisClient _rc) : base(_ssclient, _rc) { }
[HttpGet("/StatusCode/{statusCode}")]
public IActionResult Index(int statusCode, string m)
{
ViewBag.ErrorResponse = TempData["ErrorResp"] ?? "";// WebForm response object
Console.WriteLine("TempData ErrorResp: " + ViewBag.ErrorResponse);
TempData.Remove("ErrorResp");
var reExecute = HttpContext.Features.Get<IStatusCodeReExecuteFeature>();
return View(statusCode);
}
}
}