public bool Insert(int PatientAdmissionId, int AdmissionStayTypeId, DateTime ModifiedDate)
        {
            AdmissionStayChangeDAC admissionstaychangeComponent = new AdmissionStayChangeDAC();
            int AdmissionStayChangeId = 0;

            return(admissionstaychangeComponent.InsertNewAdmissionStayChange(ref AdmissionStayChangeId, PatientAdmissionId, AdmissionStayTypeId, ModifiedDate));
        }
        public bool Insert(AdmissionStayChange admissionstaychange)
        {
            int autonumber = 0;
            AdmissionStayChangeDAC admissionstaychangeComponent = new AdmissionStayChangeDAC();
            bool endedSuccessfuly = admissionstaychangeComponent.InsertNewAdmissionStayChange(ref autonumber, admissionstaychange.PatientAdmissionId, admissionstaychange.AdmissionStayTypeId, admissionstaychange.ModifiedDate);

            if (endedSuccessfuly)
            {
                admissionstaychange.AdmissionStayChangeId = autonumber;
            }
            return(endedSuccessfuly);
        }