Example #1
0
        public ActionResult CreateJobGroup(int schedulerId)
        {
            var scheduler = SchedulerRepository.GetScheduler(schedulerId);
            var vm        = new JobGroupViewModel();

            vm.SchedulerId   = scheduler.Id.Value;
            vm.SchedulerName = scheduler.Name;
            return(View(vm));
        }
Example #2
0
        public ActionResult EditScheduler(int id)
        {
            var dto = SchedulerRepository.GetScheduler(id);

            if (dto != null)
            {
                var vm = SchedulerViewModel.Create(dto);
                return(View(vm));
            }
            return(RedirectToAction("scheduler-manager"));
        }