public ActionResult Create(int categoryId, string youtubepageTitle, string youtubepageDescription, string youtubepageLink) { Dictionary <string, object> model = new Dictionary <string, object>(); Category foundCategory = Category.Find(categoryId); YouTubePage newYouTubePage = new YouTubePage(youtubepageTitle, youtubepageDescription, youtubepageLink); newYouTubePage.Save(); foundCategory.AddYouTubePage(newYouTubePage); List <YouTubePage> categoryYouTubePages = foundCategory.YouTubePages; model.Add("youtubepages", categoryYouTubePages); model.Add("category", foundCategory); return(View("Show", model)); }