public HtmlTag get_job_details_Job(ScheduledJobRequest request)
        {
            var schedule = _persistence.Find(_graph.Name, request.Job);

            var tag = new HtmlTag("div");

            tag.Add("h2").Text("Recent Execution History for " + request.Job);

            var job = _jobs.Jobs.FirstOrDefault(x => JobStatus.GetKey(x.JobType) == request.Job);

            if (job != null)
            {
                var descriptionTag = new DescriptionBodyTag(Description.For(job));
                tag.Append(descriptionTag);
                tag.Append("hr");
                tag.Append("h4").Text("History");
            }

            var history = _persistence.FindHistory(_graph.Name, request.Job);

            tag.Append(new ScheduledJobHistoryTable(history));

            return(tag);
        }
        public HtmlTag get_job_details_Job(ScheduledJobRequest request)
        {
            var schedule = _persistence.Find(_graph.Name, request.Job);

            var tag = new HtmlTag("div");
            tag.Add("h2").Text("Recent Execution History for " + request.Job);

            var job = _jobs.Jobs.FirstOrDefault(x => JobStatus.GetKey(x.JobType) == request.Job);
            if (job != null)
            {
                var descriptionTag = new DescriptionBodyTag(Description.For(job));
                tag.Append(descriptionTag);
                tag.Append("hr");
                tag.Append("h4").Text("History");
            }

            var history = _persistence.FindHistory(_graph.Name, request.Job);
            tag.Append(new ScheduledJobHistoryTable(history));

            return tag;
        }