public ActionResult VegetationSurveyEdit(int PermitKey, VegetationSurveyVM model) { if (!ModelState.IsValid) return PartialView("VegetationSurveyAddEdit", model); try { VegetationCommunityTypeDO data = model.GetDataObject(); VegetationSurveyBLL.Save(data); AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "Vegetation Community Type was saved"); return Json(result); } catch (Exception ex) { AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message); return Json(result); } }