示例#1
0
 public void editWorkFlow(long id)
 {
     using (business.Management.WorkFlowManagement.WorkFlowFunctions wflow = new business.Management.WorkFlowManagement.WorkFlowFunctions())
     {
         workflowM = wflow.findWorkFlow(id);
     }
 }
        public JsonResult workListPost(long workflowId)
        {
            try
            {
                using (business.Management.WorkFlowManagement.WorkFlowFunctions wfm = new business.Management.WorkFlowManagement.WorkFlowFunctions())
                {
                    List <Work> workList = wfm.findWorkFlow(workflowId).Works.ToList();

                    if (workList != null && !workList.Count.Equals(0))
                    {
                        return(Json(new { result = true, list3 = workList }, JsonRequestBehavior.AllowGet));
                    }
                    else
                    {
                        return(Json(new { result = false, message = "İş oluşturulmamış." }, JsonRequestBehavior.AllowGet));
                    }
                }
            }
            catch (Exception)
            {
                return(Json(new { result = false, message = "Hata oluştu." }, JsonRequestBehavior.AllowGet));
            }
        }