Beispiel #1
0
        public ActionResult Create(Livre model)
        {
            var list = Util.GetLivreToCreate();

            if (ModelState.IsValid)
            {
                model.LivreID = list.Max(x => x.LivreID) + 1;
                Util.AddBookDataBase(model);
                return(RedirectToAction("OverviewBook"));
            }
            return(View(model));
        }