Пример #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);
        }