Esempio n. 1
0
        public void UpdateModel(Models.GrantNote grantNote, Person currentPerson, EditGrantNoteType editGrantNoteType)
        {
            if (editGrantNoteType == EditGrantNoteTypeNewNote.Instance)
            {
                grantNote.CreatedByPerson = currentPerson;
                grantNote.CreatedDate     = DateTime.Now;
            }
            else
            {
                grantNote.LastUpdatedByPerson = currentPerson;
                grantNote.LastUpdatedDate     = DateTime.Now;
            }

            grantNote.GrantNoteText = GrantNoteText;
        }
 public EditGrantNoteViewData(EditGrantNoteType editGrantNoteType)
 {
     EditGrantNoteType = editGrantNoteType;
 }