Ejemplo n.º 1
0
        public ActionResult EditJob(int id)
        {
            var dto = JobRepository.GetJob(id);
            var vm  = JobViewModel.Create(dto);

            vm.JobGroups = SchedulerRepository.GetJobGroups().ToSelectList();
            return(View(vm));
        }
Ejemplo n.º 2
0
        public ActionResult CreateJob(int?groupId = null)
        {
            var vm = new JobViewModel();

            if (groupId.HasValue)
            {
                vm.GroupId = groupId.Value;
            }
            vm.JobGroups = SchedulerRepository.GetJobGroups().ToSelectList();
            return(View(vm));
        }
Ejemplo n.º 3
0
        public ActionResult JobGroupManager(int schedulerId)
        {
            var dtos = SchedulerRepository.GetJobGroups(schedulerId);
            var vms  = new List <JobGroupViewModel>();

            foreach (var dto in dtos)
            {
                vms.Add(JobGroupViewModel.Create(dto));
            }
            ViewBag.SchedulerId = schedulerId;
            return(View(vms));
        }