public EditGrantAllocationNoteViewData(EditGrantAllocationNoteType editGrantAllocationNoteType) { EditGrantAllocationNoteType = editGrantAllocationNoteType; }
public void UpdateModel(Models.GrantAllocationNote grantAllocationNote, Person currentPerson, EditGrantAllocationNoteType editGrantAllocationNoteType) { if (editGrantAllocationNoteType == EditGrantAllocationNoteTypeNewNote.Instance) { grantAllocationNote.CreatedByPerson = currentPerson; grantAllocationNote.CreatedDate = DateTime.Now; } else { grantAllocationNote.LastUpdatedByPerson = currentPerson; grantAllocationNote.LastUpdatedDate = DateTime.Now; } grantAllocationNote.GrantAllocationNoteText = GrantAllocationNoteText; }