public ActionResult Index() { WebsiteMetadata metadata = WebsiteMetadata.GetInstance(); try { throw new Exception("Form 1 did something bad"); } catch (Exception ex) { Stopwatch sw = Stopwatch.StartNew(); ExceptionHandler.Instance.WriteExceptionLog(ex); sw.Stop(); Console.WriteLine(sw.Elapsed.Milliseconds); } return(View("Index", metadata)); //return View(); }
public IActionResult Index() { WebsiteMetadata metadata = WebsiteMetadata.GetInstance(); return(View("Index", metadata)); }