public ActionResult CulturalResources(int PermitKey)
 {
     CulturalResourcesBO CulturalResourcesBo = CulturalResourcesBLL.GetCulturalResources(PermitKey);
     CulturalResourcesVM CulturalResourcesVm = new CulturalResourcesVM(CulturalResourcesBo);
     return View(CulturalResourcesVm);
 }
        public ActionResult CulturalResources(CulturalResourcesVM Model, int PermitKey)
        {
            if (!ModelState.IsValid)
            {
                CulturalResourcesBO CulturalResourcesBo = CulturalResourcesBLL.GetCulturalResources(PermitKey);
                CulturalResourcesVM CulturalResourcesVm = new CulturalResourcesVM(CulturalResourcesBo);
                CulturalResourcesVm.Description = Model.Description;
                return View(CulturalResourcesVm);
            }

            try
            {
                CulturalResourcesBO CulturalResourcesBo = Model.WriteCulturalResourcesToTable();
                CulturalResourcesBLL.SetCulturalResources(CulturalResourcesBo);
                    AddSuccessMessage("Your changes have been saved");
            }
            catch (Exception ex)
            {
                AddErrorMessage(ex);
            }

            Model.CulturalResources = CulturalResourcesBLL.GetCulturalResources(PermitKey).CulturalResourceManagement;
            return View(Model);
        }