Exemplo n.º 1
0
        public string ActivateCustomer(HttpListenerContext ct, ActionInfo hi)
        {
            //activate customer.
            var        paramList   = hi.GetParameterList(ct.Request.RawUrl);
            long       customerId  = paramList["customerId"];
            DataLogics logicsLayer = new DataLogics();
            bool       result      = logicsLayer.ActivateCustomer(customerId.ToString());

            return(GetResponseString <Boolean>(result, ct));
        }
Exemplo n.º 2
0
        public string GetOutputDocuments(HttpListenerContext ct, ActionInfo hi)
        {
            var  inputData  = hi.GetParameterList(ct.Request.RawUrl);
            long CustomerId = inputData["customerId"];

            DocumentReferenceCollection drc = new DocumentReferenceCollection();
            DocumentReference           dr  = new DocumentReference();

            dr.CustomerId     = "1";
            dr.DocumentId     = "23";
            dr.ImagePageCount = 1;
            dr.BuyerId        = "3";
            dr.BatchId        = "34";
            dr.DocumentUri    = new Uri("http://localhost:9090/test22.pdf");
            // dr.OutputOperation = OutputOperationType.Export;

            drc.Add(dr);

            return(GetResponseString <DocumentReferenceCollection>(drc, ct));
        }