public bool Insert(string Name) { EligibilityStatusDAC eligibilitystatusComponent = new EligibilityStatusDAC(); int EligibilityStatusId = 0; return(eligibilitystatusComponent.InsertNewEligibilityStatus(ref EligibilityStatusId, Name)); }
public bool Insert(EligibilityStatus eligibilitystatus) { int autonumber = 0; EligibilityStatusDAC eligibilitystatusComponent = new EligibilityStatusDAC(); bool endedSuccessfuly = eligibilitystatusComponent.InsertNewEligibilityStatus(ref autonumber, eligibilitystatus.Name); if (endedSuccessfuly) { eligibilitystatus.EligibilityStatusId = autonumber; } return(endedSuccessfuly); }