public ActionResult AddAuthor(int catalogId, int authorId) { Catalog catalog = Catalog.Find(catalogId); Author author = Author.Find(authorId); catalog.AddAuthor(author); return(RedirectToAction("Show", new { id = catalogId })); }