Ejemplo n.º 1
0
        private ClientDto GetClient(int CAId)
        {
            ClientServiceClient client    = new ClientServiceClient();
            ClientDto           clientDto = client.GetById(CAId);

            client.Close();
            return(clientDto);
        }
Ejemplo n.º 2
0
        private Common.Dto.ClientRegistration.ClientDto GetClientById()
        {
            ClientDto      clientDto = null;
            Nullable <int> caId      = null;

            if (!String.IsNullOrEmpty(Request.QueryString["CAId"]))
            {
                caId = Convert.ToInt32(Request.QueryString["CAId"]);
            }
            if (!String.IsNullOrEmpty(Request.Params["CAId"]))
            {
                caId = Convert.ToInt32(Request.Params["CAId"]);
            }

            if (caId != null)
            {
                ClientServiceClient clientService = new ClientServiceClient();
                clientDto = clientService.GetById(Convert.ToInt32(caId));
                clientService.Close();
            }

            return(clientDto);
        }