public ActionResult Jobs() { var queue = _jobProvider.Queue.Select(c => new JobQueueItemModel { Name = c.JobType.Name, Options = c.Options }); var serializedQueue = new JavaScriptSerializer().Serialize(queue); ViewData["Queue"] = serializedQueue; var jobs = _jobProvider.All().Select(j => new JobModel { Id = j.Id, Enable = j.Enable, TypeName = j.TypeName, Name = j.Name, Interval = j.Interval, LastExecution = j.LastExecution.ToString(), Success = j.Success }).OrderBy(j => j.Interval); var serializedJobs = new JavaScriptSerializer().Serialize(jobs); return(View((object)serializedJobs)); }