public bool Insert( int EmployeeID, int ContractID, int ContractStatusTypeID, decimal NetSalary, decimal GrossSalary, DateTime OfferDate, DateTime AcceptanceDate, bool IsAccepted, DateTime StartDate, DateTime EndDate) { EmployeeContractDAC employeecontractComponent = new EmployeeContractDAC(); int EmployeeContractID = 0; return employeecontractComponent.InsertNewEmployeeContract( ref EmployeeContractID, EmployeeID, ContractID, ContractStatusTypeID, NetSalary, GrossSalary, OfferDate, AcceptanceDate, IsAccepted, StartDate, EndDate); }
public bool Insert(EmployeeContract employeecontract) { int autonumber = 0; EmployeeContractDAC employeecontractComponent = new EmployeeContractDAC(); bool endedSuccessfuly = employeecontractComponent.InsertNewEmployeeContract( ref autonumber, employeecontract.EmployeeID, employeecontract.ContractID, employeecontract.ContractStatusTypeID, employeecontract.NetSalary, employeecontract.GrossSalary, employeecontract.OfferDate, employeecontract.AcceptanceDate, employeecontract.IsAccepted, employeecontract.StartDate, employeecontract.EndDate); if(endedSuccessfuly) { employeecontract.EmployeeContractID = autonumber; } return endedSuccessfuly; }