/// <summary> /// Get custom redirect data from dynamic data store. /// </summary> /// <param name="searchWord"></param> /// <returns></returns> public List <CustomRedirect> GetData(String searchWord) { List <CustomRedirect> customRedirectList; if (string.IsNullOrEmpty(searchWord)) { customRedirectList = _redirectsService.GetSaved().ToList(); } else { customRedirectList = _redirectsService.Search(searchWord).ToList(); } return(customRedirectList); }
public List <CustomRedirect> SearchCustomRedirects(string searchWord) { return(_redirectsService.Search(searchWord).ToList()); }