예제 #1
0
        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 }));
        }