Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 public List <CustomRedirect> SearchCustomRedirects(string searchWord)
 {
     return(_redirectsService.Search(searchWord).ToList());
 }