コード例 #1
0
        public bool Insert(string Name)
        {
            EligibilityStatusDAC eligibilitystatusComponent = new EligibilityStatusDAC();
            int EligibilityStatusId = 0;

            return(eligibilitystatusComponent.InsertNewEligibilityStatus(ref EligibilityStatusId, Name));
        }
コード例 #2
0
        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);
        }