예제 #1
0
        public IActionResult AddPagesToCatalog(CatalogPages catalogPages)
        {
            var catalogId = catalogPages.CatalogId;
            var pageId    = catalogPages.PageId;

            _catalogRepository.AddPageToCatalog(catalogId, pageId);

            return(View());
        }
예제 #2
0
        public IActionResult RemovePagesFromCatalog(CatalogPages catalogPages)
        {
            var catalogId = catalogPages.CatalogId;
            var pageId    = catalogPages.PageId;

            _catalogRepository.RemovePageFromCatalog(catalogId, pageId);

            return(View());
        }