public static void UpdateInternal() { float weight = 1; foreach (Category category in DbHelper.GetAllCategoriesFromDb()) { List <CachedSection> newCachedSections = FetchSections.FetchInternCachedSections(weight, category); DbHelper.SaveCachedSections(newCachedSections); } }
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); } }