public JsonResult GetApproverList()
 {
     try
     {
         object output = ProcessGuidelineBO.GetApproverList();
         return(Json(output, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json("Error:GetApproverList", JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult UpdateProcessFlow(ProcessFlowModel model)
 {
     try
     {
         int value = ProcessGuidelineBO.UpdateProcessFlow(model);
         return(Json(new { result = value }));
     }
     catch
     {
         return(Json("Error:UpdateProcessFlow", JsonRequestBehavior.AllowGet));
     }
 }
 public JsonResult GetProcessFlowUserDetails(int processGuidelineDetailId)
 {
     try
     {
         object output = ProcessGuidelineBO.GetProcessFlowUserDetails(processGuidelineDetailId);
         return(Json(output, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json("Error:GetProcessFlowUserDetails", JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult UnmapProcessflowUser(List <ProcessFlowUser> selectedUser)
 {
     try
     {
         int value = ProcessGuidelineBO.UnmapProcessflowUser(selectedUser);
         return(Json(new { result = value }));
     }
     catch
     {
         return(Json("Error:UnmapProcessflowUser", JsonRequestBehavior.AllowGet));
     }
 }
 public JsonResult LoadControls()
 {
     try
     {
         object output = ProcessGuidelineBO.LoadControls();
         return(Json(output, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json("Error:LoadControls", JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult GetProcessGuideLineList(int functionId, string processName)
 {
     try
     {
         object output = ProcessGuidelineBO.GetProcessGuideLineList(functionId, processName);
         return(Json(output, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json("Error:GetProcessGuideLineList", JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult InsertProcessGuideline(ProcessGuideline model)
 {
     try
     {
         int value = ProcessGuidelineBO.InsertProcessGuideline(model);
         return(Json(new { result = value }));
     }
     catch
     {
         return(Json("Error:InsertProcessGuideline", JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult DeletePGLWorkflow(int processguidlineworkflowId)
 {
     try
     {
         object output = ProcessGuidelineBO.DeletePGLWorkflow(processguidlineworkflowId);
         return(Json(output, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json("Error:DeletePGLWorkflow", JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult GetAllApproverList(int processheaderid, int processDetailId)
 {
     try
     {
         object output = ProcessGuidelineBO.GetAllApproverList(processheaderid, processDetailId);
         return(Json(output, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json("Error:GetAllApproverList", JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult AddApproverDetails(ProcessFlowApproverList model)
 {
     try
     {
         int value = ProcessGuidelineBO.AddApproverDetails(model);
         return(Json(new { result = value }));
     }
     catch
     {
         return(Json("Error:AddApproverDetails", JsonRequestBehavior.AllowGet));
     }
 }