Example #1
0
        public ActionResult AllXml(Guid id)
        {
            using (var context = new ElmahDashboardContext())
            {
                var item = context.GetError(id);

                Response.ContentType     = "text/xml";
                Response.ContentEncoding = Encoding.UTF8;
                return(Content(item.AllXml.ToString()));
            }
        }
Example #2
0
        public ActionResult ItemDetails(Guid id)
        {
            using (var context = new ElmahDashboardContext())
            {
                var model = new ItemDetailsModel();
                model.Item = context.GetError(id);
                model.UserAgentInfoProvider     = UserAgentInfoProvider;
                model.RemoteAddressInfoProvider = RemoteAddressInfoProvider;

                return(View("ItemDetailsPart", model));
            }
        }