Esempio n. 1
0
        async Task SaveTaskInfoCommandAct()
        {
            // TODO API call
            var serviceVisitItemId = TargetTask.ServiceVisitItemNumber;

            if (IsBusy)
            {
                return;
            }

            IsBusy = true;
            bool isSucceed = await _taskService.EditTaskInformation(serviceVisitItemId, DuplicateTaskInfo);

            IsBusy = false;

            if (isSucceed)
            {
                TargetTask.TaskInfo = DuplicateTaskInfo;
            }
            else
            {
                MessagingCenter.Send <TaskDetailsViewModel>(this, "TaskInfoUpdateFailed");
            }
        }