Пример #1
0
        /// <summary>
        /// Updates the specified subtask in database.
        /// </summary>
        /// <param name="subtask"></param>
        /// <returns></returns>
        private async Task UpdateSubtask(SubtaskViewModel subtask)
        {
            if (subtask == null)
            {
                return;
            }

            IsBusy = true;

            var success = await _repo.UpdateSubtask(subtask);

            if (!success)
            {
                SetMessage("Something went wrong. Try again.");
            }

            IsBusy = false;
        }