Esempio n. 1
0
        public bool Insert(int WardRoomBedId, int SpecialityId, bool IsMainSpeciality, int SpecialityOrder)
        {
            BedSpecialityDAC bedspecialityComponent = new BedSpecialityDAC();
            int BedSpecialityId = 0;

            return(bedspecialityComponent.InsertNewBedSpeciality(ref BedSpecialityId, WardRoomBedId, SpecialityId, IsMainSpeciality, SpecialityOrder));
        }
Esempio n. 2
0
        public bool Insert(BedSpeciality bedspeciality)
        {
            int autonumber = 0;
            BedSpecialityDAC bedspecialityComponent = new BedSpecialityDAC();
            bool             endedSuccessfuly       = bedspecialityComponent.InsertNewBedSpeciality(ref autonumber, bedspeciality.WardRoomBedId, bedspeciality.SpecialityId, bedspeciality.IsMainSpeciality, bedspeciality.SpecialityOrder);

            if (endedSuccessfuly)
            {
                bedspeciality.BedSpecialityId = autonumber;
            }
            return(endedSuccessfuly);
        }