public async Task Initialize() { if (_checker.AreAllMigrationsApplied() && IsImageTemplateExists()) { var imageTemplates = await _initialMemesProvider.GetData(); foreach (var image in imageTemplates.MemeImages) { _memeRepository.Insert(image); } _memeRepository.Save(); } }
public List <Meme> GetRepo() { _memeRepo.Save(); return(_memeRepo.Memes); }