public async Task <bool> DeleteProfileAsync()
        {
            Debug.WriteLine("Delete start!");

            return(await WorkAsync(
                       x => _worker.DeleteProfileAsync(x),
                       x => !Profiles.Contains(x)));
        }
Beispiel #2
0
        public Task <bool> DeleteProfileAsync()
        {
            Debug.WriteLine("Delete start!");

            if (!TryGetTargetProfile(out ProfileItem targetProfile))
            {
                return(Task.FromResult(false));
            }

            return(WorkAsync(targetProfile, x => _worker.DeleteProfileAsync(x)));
        }