public ActionResult Edit(ReleaseNotePrimaryKey releaseNotePrimaryKey, EditReleaseNoteRtfContentViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(ViewEdit(viewModel));
            }
            var releaseNote = releaseNotePrimaryKey.EntityObject;

            viewModel.UpdateModel(releaseNote, CurrentFirmaSession);
            return(new ModalDialogFormJsonResult());
        }
        public ActionResult New(EditReleaseNoteRtfContentViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(ViewEdit(viewModel));
            }
            var releaseNote = new ReleaseNote(String.Empty, CurrentPerson.PersonID, default(DateTime));

            viewModel.UpdateModel(releaseNote, CurrentFirmaSession);
            HttpRequestStorage.DatabaseEntities.ReleaseNotes.Add(releaseNote);
            return(new ModalDialogFormJsonResult());
        }