Exemplo n.º 1
0
        public static void UpdateInternal()
        {
            float weight = 1;

            foreach (Category category in DbHelper.GetAllCategoriesFromDb())
            {
                List <CachedSection> newCachedSections = FetchSections.FetchInternCachedSections(weight, category);

                DbHelper.SaveCachedSections(newCachedSections);
            }
        }
Exemplo n.º 2
0
        public static void UpdateExternal()
        {
            float weight = 1;

            foreach (Category category in DbHelper.GetAllCategoriesFromDb())
            {
                var sectionsRequests = BuildSectionRequests(weight, category);

                List <CachedSection> newCachedSections = FetchSections.FetchExternCachedSections(sectionsRequests, mock: true);

                DbHelper.SaveCachedSections(newCachedSections);
            }
        }