public ActionResult CompareModel() { var model = new BlockModelCompareViewModel { Models = BlockModelService.GetModelListCurrent(), Report = AllReports.GetReport(AllReports.ReportType.CompareModel) }; model.ParametersModel1 = model.Models.Any() ? BlockModelService.GetModelParameterList(new Guid(model.Models.First().Value)) : new SelectList(new SelectListItem[] { }); model.DomainsModel1 = model.Models.Any() ? BlockModelService.GetModelDomainsList(new Guid(model.Models.First().Value)) : new SelectList(new SelectListItem[] { }); model.DomainsModel2 = model.DomainsModel1; model.ParametersModel2 = model.ParametersModel1; model.ParametersIntersectionBothModels = model.ParametersModel1; return(View("CompareModel", model)); }
public ActionResult GetModelDomains(string modelID) { return(Json(BlockModelService.GetModelDomainsList(new Guid(modelID)) , JsonRequestBehavior.AllowGet)); }