public async Task <bool> AddAchievementsAsync(IEnumerable <Achievement> achievements) { _achievmentsCacheContainer.Fill(achievements); return(await Task.Run(() => { using (var db = new DietManagerDB()) { var rowsCopied = db.BulkCopy(achievements); return achievements.Count() == (int)rowsCopied.RowsCopied; } })); }