public ActionResult VegetationSurveyEdit(int PermitKey, int Id)
 {
     VegetationCommunityTypeDO tesdo = VegetationSurveyBLL.GetByCommunityTypeID(Id);
     VegetationSurveyVM model = new VegetationSurveyVM(tesdo);
     return PartialView("VegetationSurveyAddEdit", model);
 }
        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);
            }
        }
 public ActionResult VegetationSurveyAdd(int PermitKey)
 {
     VegetationSurveyVM model = new VegetationSurveyVM();
     model.PermitKey = PermitKey;
     return PartialView("VegetationSurveyAddEdit", model);
 }