Ejemplo n.º 1
0
        public static TDataResult GetDataResult <TDataResult, T>(this ISearchResponse <T> response)
            where TDataResult : DataResultEs <T>, new()
            where T : class
        {
            var result = new TDataResult {
                Count = response.Hits.Count,
                Data  = response.GetList()
            };

            return(result);
        }