public override SearchCriteria <Gpu> ToSearchCriteria()
        {
            //Get base Values

            SearchCriteria <Gpu> searchCriteria = base.ToSearchCriteria();

            ConditionActionHelper.DoIf(!string.IsNullOrEmpty(Name), () => searchCriteria.AndCondition(brand => brand.Name.Contains(Name)));
            ConditionActionHelper.DoIf(ModelId.HasValue, () => searchCriteria.AndCondition(brand => brand.ModelId == ModelId));

            return(searchCriteria);
        }
        public override SearchCriteria <GPUPriceSource> ToSearchCriteria()
        {
            //Get base Values

            SearchCriteria <GPUPriceSource> searchCriteria = base.ToSearchCriteria();

            ConditionActionHelper.DoIf(!string.IsNullOrEmpty(Name), () => searchCriteria.AndCondition(gpuPriceSource => gpuPriceSource.Name.Contains(Name)));
            ConditionActionHelper.DoIf(GpuId.HasValue, () => searchCriteria.AndCondition(gpuPriceSource => gpuPriceSource.GpuId == GpuId));

            return(searchCriteria);
        }
        public override SearchCriteria <Hashrate> ToSearchCriteria()
        {
            //Get base Values

            SearchCriteria <Hashrate> searchCriteria = base.ToSearchCriteria();

            ConditionActionHelper.DoIf(!string.IsNullOrEmpty(Name), () => searchCriteria.AndCondition(hashrate => hashrate.HashrateNumber.Contains(Name)));

            return(searchCriteria);
        }
        public override SearchCriteria <Coin> ToSearchCriteria()
        {
            //Get base Values

            SearchCriteria <Coin> searchCriteria = base.ToSearchCriteria();

            ConditionActionHelper.DoIf(!string.IsNullOrEmpty(Name), () => searchCriteria.AndCondition(algorithm => algorithm.Name.Contains(Name) || algorithm.Tag.Contains(Name)));

            return(searchCriteria);
        }
        public override SearchCriteria <Brand> ToSearchCriteria()
        {
            //Get base Values

            SearchCriteria <Brand> searchCriteria = base.ToSearchCriteria();

            ConditionActionHelper.DoIf(!string.IsNullOrEmpty(Name), () => searchCriteria.AndCondition(brand => brand.Name.Arabic.Contains(Name) || brand.Name.English.Contains(Name)));

            return(searchCriteria);
        }