Пример #1
0
        public ClienteF2CResponse getConeccion(ClienteF2CRequest request)
        {
            ClienteF2CResponse response = new ClienteF2CResponse();

            try
            {
                if (Security.ValidateTokenSitio(request.Token, request.id_Sitio.ToString(), request.vchClaveSitio))
                {
                    NapoleonDataAccess controller = new NapoleonDataAccess();
                    response.ConfigSitio = controller.getConeccion(request.vchClaveSitio);
                    response.valido      = true;
                }
                else
                {
                    response.valido  = false;
                    response.message = "Los datos de validación son erroneos.";
                }
            }
            catch (Exception getC)
            {
                throw getC;
            }
            return(response);
        }