public ActionResult Create([Bind(Include = "color,ID,name")] company company) { if (ModelState.IsValid) { db.companies.Add(company); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(company)); }
public ActionResult Create([Bind(Include = "color2,location,Description")] child child) { if (ModelState.IsValid) { db.children.Add(child); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(child)); }