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

GetData() public method

Get custom redirect data from dynamic data store.
public GetData ( String searchWord ) : List
searchWord String
return List
        public List<CustomRedirect> GetData(String searchWord)
        {
            DataStoreHandler dsHandler = new DataStoreHandler();
            List<CustomRedirect> customRedirectList;
            if (string.IsNullOrEmpty(searchWord))
            {
                customRedirectList = dsHandler.GetCustomRedirects(true);
            }
            else
                customRedirectList = dsHandler.SearchCustomRedirects(searchWord);

            return customRedirectList;
        }