public void SaveRedirect(string oldUrl, string newUrl, string skipWildCardAppend) { Logger.Debug("Adding redirect: '{0}' -> '{1}'", oldUrl, newUrl); // Get hold of the datastore _redirectsService.AddOrUpdate(new CustomRedirect(oldUrl.Trim(), newUrl.Trim(), skipWildCardAppend == null ? false : true)); CustomRedirectHandler.ClearCache(); }
public void SaveCustomRedirect(CustomRedirect currentCustomRedirect) { _redirectsService.AddOrUpdate(currentCustomRedirect); }