public bool SaveNewChampions(List <Champion> champions) { try { _context.Champions.AddRange(champions); _context.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public bool SaveNewSummoner(Summoner summoner) { try { _context.Summoners.Add(summoner); _context.SaveChanges(); return(true); } catch (Exception ex) { Debug.WriteLine(ex.Message); return(false); } }