public PartialViewResult DeleteProjectInternalNote(ProjectInternalNotePrimaryKey projectInternalNotePrimaryKey) { var projectInternalNote = projectInternalNotePrimaryKey.EntityObject; var viewModel = new ConfirmDialogFormViewModel(projectInternalNote.ProjectInternalNoteID); return(ViewDeleteProjectInternalNote(projectInternalNote, viewModel)); }
public PartialViewResult Edit(ProjectInternalNotePrimaryKey projectInternalNotePrimaryKey) { var projectInternalNote = projectInternalNotePrimaryKey.EntityObject; var viewModel = new EditNoteViewModel(projectInternalNote.Note); return(ViewEdit(viewModel)); }
public ActionResult DeleteProjectInternalNote(ProjectInternalNotePrimaryKey projectInternalNotePrimaryKey, ConfirmDialogFormViewModel viewModel) { var projectInternalNote = projectInternalNotePrimaryKey.EntityObject; if (!ModelState.IsValid) { return(ViewDeleteProjectInternalNote(projectInternalNote, viewModel)); } projectInternalNote.DeleteFull(HttpRequestStorage.DatabaseEntities); return(new ModalDialogFormJsonResult()); }
public ActionResult Edit(ProjectInternalNotePrimaryKey projectInternalNotePrimaryKey, EditNoteViewModel viewModel) { if (!ModelState.IsValid) { return(ViewEdit(viewModel)); } var projectInternalNote = projectInternalNotePrimaryKey.EntityObject; viewModel.UpdateModel(projectInternalNote, CurrentFirmaSession); return(new ModalDialogFormJsonResult()); }