public static TimerState ReduceStopTimerAction(TimerState state, StopTimerAction action) { var timer = state.Timer; timer.EndTime = DateTime.Now; return(new TimerState(new Models.Timer())); }
protected async Task HandleStopTimerAction(StopTimerAction action, IDispatcher dispatcher) { dispatcher.Dispatch(new AddTimeLogItemAction(action.Timer)); }