public ActionResult Index(string id) { if (id == null) id = MmsHelper.GetCurrentProject(); var data = new ProjectApiController().GetProjectInfo(id); var service = new sys_codeService(); var model = new { urls = new { newkey = "" }, form = data.form, scrollKeys = data.scrollKeys, dataSource = new { partAttr = service.GetValueTextListByType("PartAttr"), imagePart = service.GetValueTextListByType("ImagePart") } }; return View(model); }
public ActionResult Index(string id) { if (id == null) { id = MmsHelper.GetCurrentProject(); } var data = new ProjectApiController().GetProjectInfo(id); var service = new sys_codeService(); var model = new { urls = new { newkey = "" }, form = data.form, scrollKeys = data.scrollKeys, dataSource = new { partAttr = service.GetValueTextListByType("PartAttr"), imagePart = service.GetValueTextListByType("ImagePart") } }; return(View(model)); }