public ActionResult Create()

in sample-applications/frontend-mvc/ContainerMVC/Controllers/HomeController.cs [68:82]


        public ActionResult Create([Bind(include: "Id,Title,AuthorFirstName,AuthorLastName,AvgCustomerReviews,Price,BookLanguage,Publisher")]Book book)
        {
            try
            {
                bookDB.Books.Add(book);
                bookDB.SaveChanges();
                return RedirectToAction("Books");
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("Add", string.Format("Unable to save changes. Try again, and if the problem persists, see your system administrator. Exception:{0}", ex.Message));
            }

            return View(book);
        }