public async Task AddTask(TaskVm model)
        {
            var result = await Create(model.ToCreateTaskCommand());

            if (result != null)
            {
                var updatedList = (await GetAllTasks()).Payload;

                if (updatedList != null)
                {
                    Tasks = updatedList;
                    TasksUpdated?.Invoke(this, null);
                    return;
                }
                UpdateTasksFailed?.Invoke(this, "The creation was successful, but we can no longer get an updated list of tasks from the server.");
            }

            CreateTaskFailed?.Invoke(this, "Unable to create record.");
        }
        public async Task AssignMemberToTask(Guid memberId)
        {
            SelectedTask.AssignedMemberId = memberId;

            var result = await Update(SelectedTask.ToUpdateTaskCommand());

            Console.WriteLine(JsonSerializer.Serialize(result));

            if (result != null)
            {
                var updatedList = (await GetAllTasks()).Payload;

                if (updatedList != null)
                {
                    Tasks = updatedList;
                    TasksUpdated?.Invoke(this, null);
                    return;
                }
                UpdateTasksFailed?.Invoke(this, "The save was successful, but we can no longer get an updated list of members from the server.");
            }
            UpdateTaskFailed?.Invoke(this, "Unable to save changes.");
        }