Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public ActionResult GetModelDomains(string modelID)
 {
     return(Json(BlockModelService.GetModelDomainsList(new Guid(modelID))
                 , JsonRequestBehavior.AllowGet));
 }