public async Task <Override> AddAsync(string country, string area, DateTime searchedOn, DateTime startOn, DateTime endsOn, WarningType warningType)
        {
            var warning = new Override
            {
                Area     = area,
                Country  = country,
                StartsOn = startOn,
                EndsOn   = endsOn,
            };

            var item = await _repository.AddAsync(warning).ConfigureAwait(false);

            return(item);
        }
Exemple #2
0
        public async Task PersistOpenWeather(OpenWeatherDto openWeatherDto)
        {
            await _weatherRepository.AddAsync(ConvertOpenWeatherDtoInOpenWeather(openWeatherDto));

            await _weatherRepository.UnitOfWork.Commit();
        }