public ActionResult Details(string instanceName, string groupName, string itemName) { InstanceModel instance = instanceRepo.GetInstance(instanceName); TriggerRepository trigRepo = new TriggerRepository(instance); TriggerFireTimesModel m = new TriggerFireTimesModel(); m.Trigger = trigRepo.GetTrigger(itemName, groupName); CalendarRepository calRepo = new CalendarRepository(instance); if (!string.IsNullOrWhiteSpace(m.Trigger.CalendarName)) { m.Calendar = calRepo.GetCalendar(m.Trigger.CalendarName); } m.Instance = instance; ViewData["groupName"] = groupName; if (m.Trigger == null) { ViewData["triggerName"] = itemName; return(View("NotFound")); } else { return(View(m)); } }
public Instance GetInstance(string instanceId) { try { return(_instanceRepository.GetInstance(instanceId)); } catch (Exception e) { throw e; } }