예제 #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;
        }
예제 #2
0
 public EditGrantNoteViewModel(Models.GrantNote grantNote)
 {
     GrantNoteText = grantNote.GrantNoteText;
     GrantNoteID   = grantNote.GrantNoteID;
     GrantID       = grantNote.GrantID;
 }