Exemple #1
0
        public bool RentGroupRoom(int grouproomId, int groupId, DateTime dateStart, DateTime dateEnd)
        {
            bool isRented = false;

            if (TestGroupRoom(grouproomId, dateStart, dateEnd))
            {
                if (dbCtrl.CanTheyRent(groupId, dateStart, dateEnd))
                {
                    isRented = dbCtrl.RentGroupRoom(grouproomId, groupId, dateStart, dateEnd);
                }
            }
            return(isRented);
        }