// GET public ActionResult AntiVirusPolicy(int? AntiVirusID) { BLCustomer AntiVirusBL = new BLCustomer(); tblAntiVirusPolicy tblantivirus = new tblAntiVirusPolicy(); tblantivirus = AntiVirusBL.GetAntiVirus(AntiVirusID.Value); List<KeyValue> lstKeyVal = new List<KeyValue>(); lstKeyVal.Add(new KeyValue() { Key = "Anti-Virus Policy Name", Value = tblantivirus.PolicyName }); lstKeyVal.Add(new KeyValue() { Key = "Av Product Name", Value = tblantivirus.ProductName }); lstKeyVal.Add(new KeyValue() { Key = "Patching Time", Value = tblantivirus.PatchingTime + " " + tblantivirus.PatchingTimeZone.ID }); lstKeyVal.Add(new KeyValue() { Key = "Define Week Day (for weekly schedule)", Value = tblantivirus.WeekOfDay.Name }); lstKeyVal.Add(new KeyValue() { Key = "Define Month of Day (for Monthly Schedule) ", Value = tblantivirus.MonthOfDay.Name }); lstKeyVal.Add(new KeyValue() { Key = "Anti-Virus Scan Exclusion", Value = tblantivirus.PolicyName }); lstKeyVal.Add(new KeyValue() { Key = "Exclude files with an extension", Value = tblantivirus.ExcludedFilesExtension }); lstKeyVal.Add(new KeyValue() { Key = "Exclude File Types", Value = tblantivirus.ExcludedFileTypes }); lstKeyVal.Add(new KeyValue() { Key = "Exclude File Paths", Value = tblantivirus.ExcludedFilePaths }); if (Request.IsAjaxRequest()) return PartialView("Detail", lstKeyVal); else return View("Detail", lstKeyVal); }
// GET public ActionResult AntiVirusPolicy(int? AntiVirusID) { BLCustomer AntiVirusBL = new BLCustomer(); tblAntiVirusPolicy tblantivirus = new tblAntiVirusPolicy(); tblantivirus = AntiVirusBL.GetAntiVirus(AntiVirusID.Value); ViewBag.staus = LookUpData.GetSetUpStatus(); ViewBag.ScheduleAV = LookUpData.GetScheduleType(); ViewBag.SearchTypes = LookUpData.GetPolicyType(); ViewBag.WeekOfDayAV = LookUpData.GetWeekOfDay(); ViewBag.time = LookUpData.GetFXTime(); ViewBag.MonthOfDayAV = LookUpData.GetMonthOfDay(); ViewBag.TimeZones = LookUpData.GetTimeZone(); ViewBag.ScheduleType = LookUpData.GetScheduleType(); if (Request.IsAjaxRequest()) return PartialView(tblantivirus); else return View(tblantivirus); }