Exemple #1
0
        public async Task <bool> InsertSetPage(List <MagicSet_Temp> setPage)
        {
            try
            {
                _dbContext.MagicSets_Temp.AddRange(setPage);
                await _dbContext.SaveChangesAsync();

                return(true);
            }catch (Exception)
            {
                return(false);
            }
        }
 public async Task InsertCardPage(List <MagicCard_Temp> cardPage)
 {
     try
     {
         _dbContext.MagicCards_Temp.AddRange(cardPage);
         await _dbContext.SaveChangesAsync();
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
         throw;
     }
 }