/// <summary>
        /// Gets and builds the SolrQueryResponse model from storage
        /// </summary>
        /// <returns></returns>
        public SolrQueryResponse GetSolrQueryResponseFromStorage(string guid)
        {
            var rawSolrQueryResponse     = SolrResponseRepository.First(s => s.Guid == guid).SolrQueryResponse;
            var solrQueryResponseBuilder = new SolrQueryResponseBuilder(rawSolrQueryResponse);
            var solrQueryResponse        = solrQueryResponseBuilder.GetSolrQueryResponse();

            return(solrQueryResponse);
        }
        public string SaveSolrQueryResponse(string rawJson, string userId)
        {
            var solrQueryResponseBuilder = new SolrQueryResponseBuilder(rawJson);
            var solrQueryResponse        = solrQueryResponseBuilder.GetSolrQueryResponse();

            var solrQueryResponseRecord = new SolrQueryResponseRecord()
            {
                Guid              = Guid.NewGuid().ToString("N"),
                CreateDateTime    = DateTime.UtcNow,
                SolrQueryResponse = rawJson,
                SolrQuery         = solrQueryResponse.Debug.querystring,
                UserId            = userId
            };

            SolrResponseRepository.Insert(solrQueryResponseRecord);

            return(solrQueryResponseRecord.Guid);
        }