Exemple #1
0
        public int GenerateGuestNumber()
        {
            bool isSuccess = dataAccessLogic.AddGuest();

            if (isSuccess)
            {
                return(dataAccessLogic.GetGuestNumberSeed());
            }
            else
            {
                throw new Exception("Failed to generate guest number.");
            }
        }