Esempio n. 1
0
 public void GetDownload(string guid)
 {
     using (DocumentService documentService = new DocumentService())
     {
         base.Download(documentService.GetInfo(StringCipher.DecryptFormValues(guid, base.ApiSessionId.ToString(), base.IsEncrypted).ToGuidObj()));
     }
 }
Esempio n. 2
0
     public object GetDelete(string guid)
     {
         using (DocumentService documentService = new DocumentService())
         {
             ResultOperation resultOperation = documentService.InActive(StringCipher.DecryptFormValues(guid, base.ApiSessionId.ToString(), base.IsEncrypted).ToGuidObj());
             if (resultOperation.IsSuccess)
             {
                 return new { message = "حذف فایل موفقیت آمیز بود.", isSuccess = true }
             }
             ;
             else
             {
                 return new { message = "خطایی در حذف فایل رخ داده است.", isSuccess = false }
             };
         }
     }
 }