public override RouteValueDictionary ToRouteValueDictionary(int page, string prefix = "")
        {
            //Get The Base Values
            RouteValueDictionary routeValueDictionary = base.ToRouteValueDictionary(page, prefix);

            ConditionActionHelper.DoIf(!string.IsNullOrEmpty(Name), () => routeValueDictionary.Add(nameof(Name), Name));

            return(routeValueDictionary);
        }
        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);
        }
        public override SearchCriteria <PriceSource> ToSearchCriteria()
        {
            //Get base Values

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

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

            return(searchCriteria);
        }
        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);
        }