示例#1
0
        public async Task Initialize()
        {
            if (_checker.AreAllMigrationsApplied() && IsImageTemplateExists())
            {
                var imageTemplates = await _initialMemesProvider.GetData();

                foreach (var image in imageTemplates.MemeImages)
                {
                    _memeRepository.Insert(image);
                }

                _memeRepository.Save();
            }
        }
示例#2
0
 public List <Meme> GetRepo()
 {
     _memeRepo.Save();
     return(_memeRepo.Memes);
 }