Ejemplo n.º 1
0
        public IActionResult Create(Author model)
        {
            if (ModelState.IsValid)
            {
                var authors = new List <Author>();
                authors.Add(model);
                _inventoryService.AddAuthors(authors);
                return(RedirectToAction("Index"));
            }

            return(View(model));
        }