public IActionResult AddPagesToCatalog(CatalogPages catalogPages) { var catalogId = catalogPages.CatalogId; var pageId = catalogPages.PageId; _catalogRepository.AddPageToCatalog(catalogId, pageId); return(View()); }