public ActionResult PostMineLandUse(RevegetationPartIIVM Model, int PermitKey) { try { RevegetationPartIIBO RevegetationPartIIBo = Model.WriteDataToTables(PermitKey, ModelState); if (!ModelState.IsValid) return View(Model); PermitBLL.SetRevegetationPartII(PermitKey, RevegetationPartIIBo.PostmineRevegetationTypesDiscussion, RevegetationPartIIBo.LandUseComments); AddSuccessMessage("Your changes have been saved"); } catch (Exception ex) { AddErrorMessage(ex); } RevegetationPartIIBO Bo = PermitBLL.GetRevegetationPartII(PermitKey); RevegetationPartIIVM RevegetationPartIIVm = new RevegetationPartIIVM(Bo); return View(RevegetationPartIIVm); }
public ActionResult PostMineLandUse(int PermitKey) { RevegetationPartIIBO RevegetationPartIIBo = PermitBLL.GetRevegetationPartII(PermitKey); RevegetationPartIIVM RevegetationPartIIVm = new RevegetationPartIIVM(RevegetationPartIIBo); return View(RevegetationPartIIVm); }