public void UploadEmployees(List <Employee> employees, SalesDbContext db) { db.Employees.AddRange(employees); db.SaveChanges(); }
public Employee Save(Employee e, SalesDbContext db) { db.Employees.Add(e); db.SaveChanges(); return(e); }
public void UploadEmployees(List <Employee> employees, SalesDbContext db) { db.Employees.AddRange(employees); db.SaveChanges(); }
public Employee Save(Employee e, SalesDbContext db) { db.Employees.Add(e); db.SaveChanges(); return(e); }