Ejemplo n.º 1
0
        /// <summary>
        /// Get a lightweight information object for the specified email list panel.
        /// </summary>
        /// <param name="authenticationToken">Authentication ticket identifying calling user.</param>
        /// <param name="id">ID of the email list panel to get.</param>
        private static EmailListPanelData GetEmailListPanelInfo(string authenticationToken, int id)
        {
            var proxy = new InvitationManagementServiceClient();
            var result = proxy.GetEmailListPanelInfo(authenticationToken, id);

            // Handle exceptions
            if (!result.CallSuccess)
            {
                Console.WriteLine(result.FailureMessage);
                return null;
            }

            return result.ResultData;
        }