BVNetwork.NotFound.Controllers.NotFoundRedirectController.SaveSuggestion C# (CSharp) Method

SaveSuggestion() public method

public SaveSuggestion ( string oldUrl, string newUrl, string skipWildCardAppend, int pageNumber, int pageSize ) : System.Web.Mvc.ActionResult
oldUrl string
newUrl string
skipWildCardAppend string
pageNumber int
pageSize int
return System.Web.Mvc.ActionResult
        public ActionResult SaveSuggestion(string oldUrl, string newUrl, string skipWildCardAppend, int? pageNumber, int? pageSize)
        {
            CheckAccess();
            SaveRedirect(oldUrl, newUrl, skipWildCardAppend);

            // delete rows from DB
            var dbAccess = DataAccessBaseEx.GetWorker();
            dbAccess.DeleteRowsForRequest(oldUrl);

            //
            List<CustomRedirect> customRedirectList = GetSuggestions(null);
            string actionInfo = string.Format(LocalizationService.Current.GetString("/gadget/redirects/saveredirect"), oldUrl, newUrl);
            DataStoreEventHandlerHook.DataStoreUpdated();
            var viewData = GetRedirectIndexViewData(pageNumber, customRedirectList, actionInfo, null, pageSize, true, true);
            viewData.HighestSuggestionValue = customRedirectList.First().NotfoundErrorCount;
            viewData.LowestSuggestionValue = customRedirectList.Last().NotfoundErrorCount;
            return View("Index", viewData);
        }