public Department Add(Department department)
 {
     context.Departments.Add(department);
     context.SaveChanges();
     return(department);
 }
 public void Add(Apply apply)
 {
     context.Applies.Add(apply);
     context.SaveChanges();
 }
示例#3
0
 public Employee Add(Employee employee)
 {
     context.Employees.Add(employee);
     context.SaveChanges();
     return(employee);
 }
 public MoveDep Add(MoveDep move)
 {
     context.MoveDeps.Add(move);
     context.SaveChanges();
     return(move);
 }