public void UpdateModel(Models.GrantAllocationNoteInternal grantAllocationNoteInternal, Person currentPerson, EditGrantAllocationNoteType editGrantAllocationNoteType) { if (editGrantAllocationNoteType == EditGrantAllocationNoteTypeNewNote.Instance) { grantAllocationNoteInternal.CreatedByPerson = currentPerson; grantAllocationNoteInternal.CreatedDate = DateTime.Now; } else { grantAllocationNoteInternal.LastUpdatedByPerson = currentPerson; grantAllocationNoteInternal.LastUpdatedDate = DateTime.Now; } grantAllocationNoteInternal.GrantAllocationNoteInternalText = GrantAllocationNoteInternalText; }
public EditGrantAllocationNoteInternalViewModel(Models.GrantAllocationNoteInternal grantAllocationNoteInternal) { GrantAllocationNoteInternalText = grantAllocationNoteInternal.GrantAllocationNoteInternalText; }