public CoronaNinjaAPIService(ConstantsLazyService lazyService, IAppCache cach) { GlobalState = new AsyncLazy <List <CoronaCountryState> >(GetCountryState); HopkinsCSSEState = new AsyncLazy <List <CoronaHopkinsCSSEState> >(GetHopkinsCSSEState); ContinentsState = new AsyncLazy <List <Continent> >(GetContinents); ContinentAndAmountsState = new AsyncLazy <List <ContinentAndAmountsDTO> >(GetAmountByContinent); LazyService = lazyService; cache = cach; }
public SiteController(ConstantsLazyService lazyService) { LazyService = lazyService; }