Ejemplo n.º 1
0
 public JsonResult ArchiveDoc(int AD_Process_ID, string Name, int AD_Table_ID, int Record_ID, int C_BPartner_ID, bool isReport, byte[] binaryData, string reportPath)
 {
     if (Session["ctx"] != null)
     {
         return(Json(JsonConvert.SerializeObject(ProcessHelper.ArchiveDoc(Session["ctx"] as Ctx, AD_Process_ID, Name, AD_Table_ID, Record_ID, C_BPartner_ID, isReport, binaryData, reportPath)), JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(JsonConvert.SerializeObject("SessionExpired"), JsonRequestBehavior.AllowGet));
     }
 }