private PartialViewResult ViewDeleteNeptuneHomePageImage(NeptuneHomePageImage neptuneHomePageImage, ConfirmDialogFormViewModel viewModel) { var confirmMessage = $"Are you sure you want to delete this image? ({neptuneHomePageImage.Caption})"; var viewData = new ConfirmDialogFormViewData(confirmMessage, true); return(RazorPartialView <ConfirmDialogForm, ConfirmDialogFormViewData, ConfirmDialogFormViewModel>(viewData, viewModel)); }
public ActionResult New(NewViewModel viewModel) { if (!ModelState.IsValid) { return(ViewNew(viewModel)); } var neptuneHomePageImage = new NeptuneHomePageImage(-1, null, 0); viewModel.UpdateModel(neptuneHomePageImage, CurrentPerson); HttpRequestStorage.DatabaseEntities.NeptuneHomePageImages.Add(neptuneHomePageImage); return(new ModalDialogFormJsonResult()); }
private PartialViewResult ViewEdit(NeptuneHomePageImage neptuneHomePageImage, EditViewModel viewModel) { var viewData = new EditViewData(neptuneHomePageImage); return(RazorPartialView <Edit, EditViewData, EditViewModel>(viewData, viewModel)); }