Ejemplo n.º 1
0
        public async Task <PartialViewResult> EditModal(long id)
        {
            var viewModel = await _Job_RPTEmailAppService.GetJob_RPTEmailById(id);

            var jobGroups = await _JobGroupAppService.GetJobGroupsToItem(viewModel.BGJM_JobGroup_Id);

            ViewBag.JobGroups = jobGroups;

            //var categories = await _CategoryAppService.GetCategoriesToItem(0);
            //ViewBag.Categories = categories;

            var reportTemplates = await _ReportTemplateAppService.GetReportTemplatesToItem(viewModel.Template_Id);

            ViewBag.ReportTemplates = reportTemplates;

            return(PartialView("_CreateOrEditModal", viewModel));
        }
Ejemplo n.º 2
0
        public async Task <PartialViewResult> EditModal(long id)
        {
            var viewModel = await _Job_RPTEmailAppService.GetJob_RPTEmailById(id);

            return(PartialView("_CreateOrEditModal", viewModel));
        }