Exemplo n.º 1
0
        /// <summary>
        /// Gets Job Histories by Type for given media server and returns JobHistory partial view.
        /// </summary>
        /// <param name="JobType"></param>
        /// <param name="media"></param>
        /// <returns></returns>
        public ActionResult GetJobHistoryType(string JobType, string media)
        {
            Trace.WriteLine("Entering GetJobHistoryType method");
            ModelState.Clear();
            ViewBag.Name   = "Name";
            ViewBag.Status = "Status";
            ViewBag.Type   = JobType;
            if (JobType.Equals("All"))
            {
                var jobHistories2 = DocumentDBDataController.GetJobHistories(media);
                ViewBag.Mediaserver = media;
                return(PartialView("JobHistory", jobHistories2));
            }
            var jobsHistories1 = DocumentDBDataController.GetJobHistoryByJobType(JobType, media);

            ViewBag.Mediaserver = media;
            return(PartialView("JobHistory", jobsHistories1));
        }