示例#1
0
 public void AddEmployees(Employee employee)
 {
     _employeeContext.Employees.Add(employee);
     _employeeContext.SaveChanges();
 }
示例#2
0
 public void AddDepartment(Department dept)
 {
     _departmentContext.Departments.Add(dept);
     _departmentContext.SaveChanges();
 }