Beispiel #1
0
        public ActionResult Delete(string oldUrl, int?pageNumber, string searchWord, int?pageSize)
        {
            CheckAccess();

            Logger.Debug("Deleting redirect: '{0}'", oldUrl);

            _redirectsService.DeleteByOldUrl(oldUrl);
            CustomRedirectHandler.ClearCache();
            List <CustomRedirect> customRedirectList = GetData(searchWord);

            //Make sure that the searchinfo is contained after an item has been deleted - if there is any.
            return(View("Index", GetRedirectIndexViewData(pageNumber, customRedirectList, GetSearchResultInfo(searchWord, customRedirectList.Count, false), searchWord, pageSize, false, true)));
        }
Beispiel #2
0
 public void DeleteCustomRedirect(string oldUrl)
 {
     _redirectsService.DeleteByOldUrl(oldUrl);
 }