Exemplo n.º 1
0
        /// <summary>
        /// Retrieve client details
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <param name="clientUID"> </param>
        public static ResponseStatus ClientRead(int clientUID)
        {
            var response = new ResponseStatus();

            var client = new Client.Client {
                UID = clientUID
            };

            client.Read();

            client.clientExtraInformation = new ClientExtraInformation {
                FKClientUID = client.UID
            };
            client.clientExtraInformation.Read();

            if (client.UID > 0)
            {
                ReadLogoStatus(client);
            }

            response.Contents = client;
            return(response);
        }