/// <summary>
        ///  Gets the Alerts by Category and returns the the Alert partial view.
        /// </summary>
        /// <param name="Category"></param>
        /// <param name="media"></param>
        /// <param name="alerts"></param>
        /// <returns></returns>
        public ActionResult GetCategory(string Category, string media, IEnumerable <Alert> alerts)
        {
            Trace.WriteLine("Entering GetCategory method");
            ModelState.Clear();
            ViewBag.Name     = "Name";
            ViewBag.Severity = "Severity";
            ViewBag.Category = Category;

            if (Category.Equals("All"))
            {
                IEnumerable <Alert> alerts2 = DocumentDBDataController.GetAlerts(media);
                ViewBag.Mediaserver = media;
                return(PartialView("Alert", alerts2));
            }

            var alerts1 = DocumentDBDataController.GetAlertsByCategory(Category, media);

            ViewBag.Mediaserver = media;
            return(PartialView("Alert", alerts1));
        }