private void AcceptEntryExecute(EntryToDisplay entry) { switch (entry.EntryType) { case EntryType.Leave: _entryService.AcceptLeave(entry.Id); break; case EntryType.Vacation: _entryService.AcceptVacation(entry.Id); break; } RetrieveData(); }