Ejemplo n.º 1
0
        public static async Task <bool> DeleteAsync(Authentication authentication, IUserCategoryDescriptor descriptor)
        {
            var dialog = await DeleteUserCategoryViewModel.CreateInstanceAsync(authentication, descriptor);

            if (dialog != null && await dialog.ShowDialogAsync() == true)
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public static async Task <bool> DeleteAsync(Authentication authentication, IUserCategoryDescriptor descriptor)
        {
            var dialog = await DeleteUserCategoryViewModel.CreateInstanceAsync(authentication, descriptor);

            return(dialog?.ShowDialog() == true);
        }