public Employee SaveEmployee(Employee e) { SalesERPDAL salesDal = new SalesERPDAL(); salesDal.Employees.Add(e); salesDal.SaveChanges(); return e; }
public void UploadEmployees(List<Employee> employees) { SalesERPDAL salesDal = new SalesERPDAL(); salesDal.Employees.AddRange(employees); salesDal.SaveChanges(); }