示例#1
0
        public void StartOrStopWorkTask()
        {
            var doingTask = Dto.WorkingTimes.LastOrDefault(t => t.IsDoing);

            if (doingTask != null)
            {
                _Model.StopWorking(doingTask.Id);
            }
            else
            {
                _Model.StartWorking(Dto.TaskId);
            }
        }