예제 #1
0
 public Employee SaveEmployee(Employee e)
 {
     SalesERPDAL salesDal = new SalesERPDAL();
     salesDal.Employees.Add(e);
     salesDal.SaveChanges();
     return e;
 }
예제 #2
0
 public void UploadEmployees(List<Employee> employees)
 {
     SalesERPDAL salesDal = new SalesERPDAL();
     salesDal.Employees.AddRange(employees);
     salesDal.SaveChanges();
 }
예제 #3
0
 public List<Employee> GetEmployees()
 {
     SalesERPDAL salesDal = new SalesERPDAL();
     return salesDal.Employees.ToList();
 }