Example #1
0
        /// <summary>
        /// Disregards attendant id and account number
        /// </summary>
        /// <param name="newQueueAttendant"></param>
        /// <returns></returns>
        public bool RegisterAsQueueAttendant(QueueAttendant queueAttendant)
        {
            var newQueueAttendant = new QueueAttendant(queueAttendant);
            var hashedPassword    = Hasher.HashSHA512(newQueueAttendant.GetPassword()).Digest;

            newQueueAttendant.SetPassword(hashedPassword);

            return(dataAccessLogic.AddQueueAttendant(newQueueAttendant));
        }