Exemple #1
0
        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));
        }