public bool Insert( ref int EmployeeDocumentID, int EmployeeDocumentTypeID, int EmployeeID, string Name, string Path) { EmployeeDocumentDAC employeedocumentComponent = new EmployeeDocumentDAC(); return employeedocumentComponent.InsertNewEmployeeDocument( ref EmployeeDocumentID, EmployeeDocumentTypeID, EmployeeID, Name, Path); }
public bool Insert(EmployeeDocument employeedocument) { int autonumber = 0; EmployeeDocumentDAC employeedocumentComponent = new EmployeeDocumentDAC(); bool endedSuccessfuly = employeedocumentComponent.InsertNewEmployeeDocument( ref autonumber, employeedocument.EmployeeDocumentTypeID, employeedocument.EmployeeID, employeedocument.Name, employeedocument.Path); if(endedSuccessfuly) { employeedocument.EmployeeDocumentID = autonumber; } return endedSuccessfuly; }