//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); } }
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"); } }