private void SaveEmployeeProgram(EmployeeProgram employeeProgram) { if (employeeProgram.LifeCycleStatus == BusinessBaseLifeCycle.New) { InsertEmployeeProgram(employeeProgram); } else if (employeeProgram.LifeCycleStatus == BusinessBaseLifeCycle.Deleted) { Database.Delete(employeeProgram); } else if (employeeProgram.LifeCycleStatus == BusinessBaseLifeCycle.Old) { Database.Update(employeeProgram); } }
private void InsertEmployeeProgram(EmployeeProgram employeeProgram) { Database.Insert(employeeProgram); }
private void SaveEmployeeProgram(EmployeeProgram employeeProgram) { if (employeeProgram.LifeCycleStatus == BusinessBaseLifeCycle.New) { InsertEmployeeProgram(employeeProgram); } else if (employeeProgram.LifeCycleStatus == BusinessBaseLifeCycle.Deleted) { Database.Delete(employeeProgram); } else if (employeeProgram.LifeCycleStatus == BusinessBaseLifeCycle.Old) { Database.Update(employeeProgram); } }
private void InsertEmployeeProgram(EmployeeProgram employeeProgram) { Database.Insert(employeeProgram); }