Exemple #1
0
        //serching by hashtags
        public IList <SearchDTO> SearchAllHashTag(string searchString, Guid UserId)
        {
            IList <SearchDTO> getAllResults = searchDBContext.GetAllHashTag(searchString, UserId);

            if (getAllResults != null)
            {
                return(getAllResults);
            }
            else
            {
                return(null);
            }
        }
Exemple #2
0
        public IList <SearchDTO> SearchAllHashTag(string searchString, Guid UserId)
        {
            IList <SearchDTO> getAllResults = searchDBContext.GetAllHashTag(searchString, UserId);

            if (getAllResults != null)
            {
                return(getAllResults);
            }
            else
            {
                throw new Exceptions.ResultIsNull("No item Exists matching your search criteria");
            }
        }