public static EnergyTrading.Contracts.Search.SearchFields FromNexus(this SearchFields searchFields)
 {
     var c = new EnergyTrading.Contracts.Search.SearchFields
     {
         Criterias = new List<EnergyTrading.Contracts.Search.SearchCriteria>(),
         Combinator = searchFields.Combinator.FromNexus()
     };
     searchFields.Criterias.ToList().ForEach(x => c.Criterias.Add(x.FromNexus()));
     return c;
 }
        public static EnergyTrading.Contracts.Search.SearchFields FromNexus(this SearchFields searchFields)
        {
            var c = new EnergyTrading.Contracts.Search.SearchFields
            {
                Criterias  = new List <EnergyTrading.Contracts.Search.SearchCriteria>(),
                Combinator = searchFields.Combinator.FromNexus()
            };

            searchFields.Criterias.ToList().ForEach(x => c.Criterias.Add(x.FromNexus()));
            return(c);
        }