示例#1
0
        public Response Protect(string passw)
        {
            Response response = null;

            if (Request.Files.Count > 0)
            {
                var docs = UploadFiles(Request);

                AsposeWordsProtection asposeWordsProtection = new AsposeWordsProtection();
                response = asposeWordsProtection.Protect(docs, passw);
            }

            return(response);
        }
示例#2
0
        public Response Unlock(string outputType, string passw)
        {
            Response response = null;

            if (Request.Files.Count > 0)
            {
                var docs = UploadFiles(Request);

                AsposeWordsProtection asposeWordsProtection = new AsposeWordsProtection();
                response = asposeWordsProtection.Unlock(docs, outputType, passw);
            }

            return(response);
        }