public ActionResult Create() { var msg = ""; ViewData.Model = StructureHelper.GetTableConfig(tableSlug); if (Request.HttpMethod == "POST") { var form = Request.Form; Dictionary <string, object> record = new Dictionary <string, object>(); foreach (var key in form.AllKeys) { record.Add(key, form[key]); } //TODO validation StructureHelper.Create(tableSlug, record); msg = "created"; } ViewBag.msg = msg; return(View()); }