using ARC.GMP.Models; using ARC.GMP.Utils; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Web; using System.Web.Mvc; using System.Web.Script.Serialization; namespace ARC.GMP.Controllers { public class HomeController : Controller { //[UserAuthorizationAndRoles("Index")] public async System.Threading.Tasks.Task Index() { return View(); } public JsonResult data(ExceptionContext filterContext) { var str = (Newtonsoft.Json.JsonConvert.SerializeObject(new { data = filterContext.Exception.Message, code = -1, message = filterContext.Exception.Message })); return Json(str, JsonRequestBehavior.AllowGet); } } }