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 EditGrantNoteViewModel(Models.GrantNote grantNote) { GrantNoteText = grantNote.GrantNoteText; GrantNoteID = grantNote.GrantNoteID; GrantID = grantNote.GrantID; }