public ActionResult Create(RemoteTextFolderMapping mapping, string @return)
 {
     var resultEntry = new JsonResultData(ModelState);
     if (ModelState.IsValid)
     {
         resultEntry.RunWithTry((data) =>
         {
             _manager.Add(mapping);
             data.RedirectUrl = @return;
         });
     }
     return Json(resultEntry);
 }
 public ActionResult Edit(RemoteTextFolderMapping mapping, string @return)
 {
     var resultEntry = new JsonResultData(ModelState);
     if (ModelState.IsValid)
     {
         resultEntry.RunWithTry((data) =>
         {
             var oldModel = _manager.Get(mapping.UUID);
             _manager.Update(mapping, oldModel);
             resultEntry.RedirectUrl = @return;
         });
     }
     return Json(resultEntry);
 }
 public ActionResult Create()
 {
     var model = new RemoteTextFolderMapping();
     model.Enabled = true;
     return View(model);
 }