public ActionResult PlansForPondsAndEmbankmentsAdd(int PermitKey, PlansForPondsAndEmbankmentsVM model)
        {
            if (!ModelState.IsValid)
                return PartialView(model);

            try
            {
                PondSpecificBO bo = model.GetDataObject();
                bo.PondSpecificDesignAndAsBuiltId = PlansForPondsAndEmbankmentsBLL.Save(bo);
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "The record was saved");
                return Json(result);
            }
            catch (Exception ex)
            {
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message);
                return Json(result);
            }
        }
 public ActionResult PlansForPondsAndEmbankmentsEdit(int PermitKey, int Id)
 {
     PondSpecificBO bo = PlansForPondsAndEmbankmentsBLL.GetById(Id);
     PlansForPondsAndEmbankmentsVM model = new PlansForPondsAndEmbankmentsVM(bo);
     return PartialView("PlansForPondsAndEmbankmentsAdd", model);
 }
 public ActionResult PlansForPondsAndEmbankmentsAdd(int PermitKey)
 {
     PlansForPondsAndEmbankmentsVM model = new PlansForPondsAndEmbankmentsVM() { PermitKey = PermitKey };
     return PartialView(model);
 }