public ActionResult ReclamationPostmineRevegetationEdit(int PermitKey, int Id)
 {
     PostmineLandUseDO PMLU = PostmineLandUseBLL.GetByID(Id);
     ReclamationPostmineRevegetationVM model = new ReclamationPostmineRevegetationVM(PMLU);
     return PartialView("ReclamationPostmineRevegetationAddEdit", model);
 }
        public ActionResult ReclamationPostmineRevegetationEdit(int PermitKey, ReclamationPostmineRevegetationVM model)
        {
            if (!ModelState.IsValid)
                return PartialView("ReclamationPostmineRevegetationAddEdit", model);

            try
            {
                PostmineLandUseDO data = model.WriteDataToTables();
                PostmineLandUseBLL.Save(data);
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "Postmine Land Use was saved");
                return Json(result);
            }
            catch (Exception ex)
            {
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message);
                return Json(result);
            }
        }
 public ActionResult ReclamationPostmineRevegetationAdd(int PermitKey)
 {
     ReclamationPostmineRevegetationVM model = new ReclamationPostmineRevegetationVM();
     model.PermitKey = PermitKey;
     return PartialView("ReclamationPostmineRevegetationAddEdit", model);
 }