Beispiel #1
0
        public IActionResult CreateCatalogue(Catalogue catalogue)
        {
            if (!ModelState.IsValid)
            {
                ViewBag.Families = _familyService.GetFamilies();
                return(View());
            }

            _catalogueService.AddCatalogue(catalogue);

            return(RedirectToAction("Catalogues"));
        }