public async void Execute(object parameter) { var item = parameter as CheckedListItem <Permission, UserRole>; if (item == null) { return; } //item.Item if (item.IsChecked) { await _repository.AssignPermissionToRole(item.ItemOwner, item.Item); } else { await _repository.RetractPermissionFromRole(item.ItemOwner, item.Item); } }