Ejemplo n.º 1
0
        /// <summary>
        /// Return the User domain object based off the currently logged in user.
        /// </summary>
        /// <returns>User domain object</returns>
        public User GetLoggedInUser()
        {
            var username = GetUsername();

            if (string.IsNullOrWhiteSpace(username))
            {
                return(null);
            }

            // Obtain the speaker from the DataAccess service
            return(_attendeeService.GetAttendeeByUsername(username));
        }