public bool Insert( int AbstractReviewerId, int AbstractId, bool HasAcceptedReview, DateTime DateAssigned, DateTime DateAccepted) { AbstractReviewerAssignmentDAC abstractreviewerassignmentComponent = new AbstractReviewerAssignmentDAC(); int AbstractReviewerAssignmentId = 0; return abstractreviewerassignmentComponent.InsertNewAbstractReviewerAssignment( ref AbstractReviewerAssignmentId, AbstractReviewerId, AbstractId, HasAcceptedReview, DateAssigned, DateAccepted); }
public bool Insert(AbstractReviewerAssignment abstractreviewerassignment) { int autonumber = 0; AbstractReviewerAssignmentDAC abstractreviewerassignmentComponent = new AbstractReviewerAssignmentDAC(); bool endedSuccessfuly = abstractreviewerassignmentComponent.InsertNewAbstractReviewerAssignment( ref autonumber, abstractreviewerassignment.AbstractReviewerId, abstractreviewerassignment.AbstractId, abstractreviewerassignment.HasAcceptedReview, abstractreviewerassignment.DateAssigned, abstractreviewerassignment.DateAccepted); if(endedSuccessfuly) { abstractreviewerassignment.AbstractReviewerAssignmentId = autonumber; } return endedSuccessfuly; }