public void PunchOut(TimeEntry timeEntry)
 {
     if (!timeEntry.EndDate.HasValue)
     {
         timeEntry.EndDate = DateTime.Now;
     }
     timeEntry.Status = Status.Done;
     SaveWorkItemCommand.Execute(new Action(() => CurrentEntry = null));
 }
 public void PunchIn(TimeEntry timeEntry)
 {
     if (!CanModifyEntry)
     {
         AddEntryCommand.Execute(timeEntry);
     }
     //todo: to save or not to save?
     SaveWorkItemCommand.Execute(null);
 }