public ActionResult PremineLandUseEdit(int PermitKey, PremineLandUseVM model) { if (!ModelState.IsValid) return PartialView("PremineLandUseAddEdit", model); try { PremineLandUseDO data = model.WriteDataToTables(); PremineLandUseBLL.Save(data); AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "Premine Land Use was saved"); return Json(result); } catch (Exception ex) { AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message); return Json(result); } }