public List <Rebel> AddRebels(List <Rebel> rebels) { try { _dbContext.AddRange(rebels); _dbContext.SaveChanges(); return(rebels); } catch (Exception) { throw; } }
public void AddRebels(List <Rebel> rebels) { _dbContext.Rebels.AddRange(rebels); _dbContext.SaveChanges(); }