예제 #1
0
        public ActionResult Create([Bind(Include = "Code,Description")] Catalog catalog)
        {
            if (!ModelState.IsValid)
            {
                return(View(catalog));
            }
            var catalogManager = new CatalogManager();

            catalogManager.CreateCatalog(catalog);
            return(RedirectToAction("Index"));
        }