public JsonResult GenScript(CreateTableViewModel model) { CreateTableGenerator generator = new CreateTableGenerator(model); return(new JsonResult { Data = generator.Generate() }); }
public ActionResult LoadDB(CreateTableViewModel model) { if (string.IsNullOrEmpty(model.TableName)) { return(this.RedirectToAction("Index")); } CreateTableGenerator generator = new CreateTableGenerator(model); model = generator.LoadDB(); return(this.View("Index", model)); }