public void Add(List <Comment> entities) { _context.Comments.AddRange(entities); _context.SaveChanges(); }
public int Add(Employee entity) { _context.Employees.Add(entity); _context.SaveChanges(); return(entity.Id); }
public void Add(List <Comment> entities) { _context.Comments.AddRange(entities); _context.SaveChanges(); }
public int Add(Employee entity) { _context.Employees.Add(entity); _context.SaveChanges(); return(entity.Id); }