예제 #1
0
        private async Task <bool> SaveTask()
        {
            IsBusy = true;
            try
            {
                UserTask.ElapsedTimeInSeconds = StopDuration.TotalSeconds;
                NotifyStatusProperties();
                UserTask.EndDateTime = DateTime.Now;
                await _userTaskService.CompleterUserTask(UserTask);

                await _userTaskService.UpdateUserTask(UserTask);

                PublishTaskCompleted(true);
            }
            finally
            {
                IsBusy = false;
            }
            return(true);
        }