private async void DeleteMaterialAction(DBFile obj) { var confirm = await _dialog.ShowConfirmation("Confirm", "Are you sure you want to delete this material"); if (confirm) { IsBusy = true; var res = await _courseHandler.DeleteCouseMaterial(obj); if (res != null) { _dialog.ShowToastMessage(res.Message); } if (res.Actionstatus) { DBFiles.Remove(obj); } IsBusy = false; } }