public ActionResult Create([Bind(Include = "Name,Type,Description")] Client client) { if (ModelState.IsValid) { db.CreateClient(client.Name, client.Type, client.Description); return(RedirectToAction("Index")); } return(View(client)); }
public ActionResult Create([Bind(Include = "Name,Type,Description")] Client client) { if (ModelState.IsValid) { db.CreateClient(client.Name, client.Type, client.Description); return(RedirectToAction("Index")); } return(View(client)); }