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)); }