public ActionResult SoilHandlingPlanProposedSoilSalvageDepthEdit(int PermitKey, int Id)
 {
     ProposedSoilSalvageDepthDO PSSD = SoilHandlingPlanBLL.GetProposedSoilSalvageDepth(Id);
     ProposedSoilSalvageDepthVM model = new ProposedSoilSalvageDepthVM(PSSD);
     return PartialView("SoilHandlingPlanProposedSoilSalvageDepthAddEdit", model);
 }
        public ActionResult SoilHandlingPlanProposedSoilSalvageDepthEdit(int PermitKey, ProposedSoilSalvageDepthVM model)
        {
            if (!ModelState.IsValid)
                return PartialView("SoilHandlingPlanProposedSoilSalvageDepthAddEdit", model);

            try
            {
                ProposedSoilSalvageDepthDO data = model.WriteSoilSalvageDepth();
                SoilHandlingPlanBLL.SaveProposedSoilSalvageDepth(data);
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "Soil Salvage Depth was saved");
                return Json(result);
            }
            catch (Exception ex)
            {
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message);
                return Json(result);
            }
        }
 public ActionResult SoilHandlingPlanProposedSoilSalvageDepthAdd(int PermitKey)
 {
     ProposedSoilSalvageDepthVM model = new ProposedSoilSalvageDepthVM();
     model.PermitKey = PermitKey;
     return PartialView("SoilHandlingPlanProposedSoilSalvageDepthAddEdit", model);
 }