private void ResetModel(DateTime date) { viewModel.CurrentEntry = new BulkEntry(); viewModel.CurrentEntry.EntryDate = date.Date; viewModel.CurrentEntry.ExpenseCodes = new List <EntryCode>(); if (expenseCodes != null) { foreach (var code in expenseCodes) { EntryCode ec = new EntryCode(); ec.Id = code.Id.Value; ec.Name = code.Name; ec.Rate = code.RateBillableDefault; viewModel.CurrentEntry.ExpenseCodes.Add(ec); } } }
public bool Verify(string submittedEntryCode) => EntryCode.ToUpper() == submittedEntryCode.ToUpper();