Esempio n. 1
0
        private async Task <IEnumerable <Holiday> > GetHolidaysByCountryAsync(string countryIsoCode, int year)
        {
            if (!await HolidaysAlreadyExist(countryIsoCode, year))
            {
                await CreateHoliday(countryIsoCode, year);
            }

            return(await HolidayRepository.GetHolidaysByCountryAsync(countryIsoCode, year));
        }