public JsonResult Save(WorkflowStructure model)
 {
     model.STRUCTUREXML = System.Web.HttpContext.Current.Server.UrlDecode(model.STRUCTUREXML);
     if (String.IsNullOrEmpty(model.IDENTIFICATION))
     {
         model.IDENTIFICATION = Guid.NewGuid().ToString();
         designService.Persistent(model);
     }
     else
     {
         designService.Update(model);
     }
     return(Json(true, JsonRequestBehavior.AllowGet));
 }
 public JsonResult Save(WorkflowStructure model)
 {
     if (String.IsNullOrEmpty(model.IDENTIFICATION))
     {
         model.IDENTIFICATION = Guid.NewGuid().ToString();
         model.FILESTRUCTURE  = HttpUtility.UrlDecode(model.FILESTRUCTURE);
         designService.Persistent(model);
     }
     else
     {
         model.FILESTRUCTURE = HttpUtility.UrlDecode(model.FILESTRUCTURE);
         designService.Update(model);
     }
     return(Json(true));
 }