public PartialViewResult DeleteNeptuneHomePageImage(NeptuneHomePageImagePrimaryKey neptuneHomePageImagePrimaryKey)
        {
            var neptuneHomePageImage = neptuneHomePageImagePrimaryKey.EntityObject;
            var viewModel            = new ConfirmDialogFormViewModel(neptuneHomePageImage.NeptuneHomePageImageID);

            return(ViewDeleteNeptuneHomePageImage(neptuneHomePageImage, viewModel));
        }
        public PartialViewResult Edit(NeptuneHomePageImagePrimaryKey neptuneHomePageImagePrimaryKey)
        {
            var neptuneHomePageImage = neptuneHomePageImagePrimaryKey.EntityObject;
            var viewModel            = new EditViewModel(neptuneHomePageImage);

            return(ViewEdit(neptuneHomePageImage, viewModel));
        }
        public ActionResult Edit(NeptuneHomePageImagePrimaryKey neptuneHomePageImagePrimaryKey, EditViewModel viewModel)
        {
            var neptuneHomePageImage = neptuneHomePageImagePrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(ViewEdit(neptuneHomePageImage, viewModel));
            }
            viewModel.UpdateModel(neptuneHomePageImage, CurrentPerson);
            return(new ModalDialogFormJsonResult());
        }
        public ActionResult DeleteNeptuneHomePageImage(NeptuneHomePageImagePrimaryKey neptuneHomePageImagePrimaryKey, ConfirmDialogFormViewModel viewModel)
        {
            var neptuneHomePageImage = neptuneHomePageImagePrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(ViewDeleteNeptuneHomePageImage(neptuneHomePageImage, viewModel));
            }

            HttpRequestStorage.DatabaseEntities.NeptuneHomePageImages.DeleteNeptuneHomePageImage(neptuneHomePageImage);
            return(new ModalDialogFormJsonResult());
        }