public ActionResult Index(string[] table) { TempData["ActiveConstructor"] = true; Models.Constructor c = new Models.Constructor { SelectedTables = table }; c.Attributes = c.GetAttributes(); return(View("Index2", c)); }
public ActionResult Index(string[] table) // получение выбранных таблиц { if (table == null || table.Count() == 0) { ModelState.AddModelError("", "Необходимо выбрать хотя бы один объект"); return(View(table)); } constructor.SelectedTables = table; constructor.Attributes = constructor.GetAttributes(); return(View("Index2", constructor)); // отображение атрибутов }