私のユーザーは、DataGrid 内の複数のエンティティを削除できます。customerService クラスに DeleteCustomer メソッドを作成する必要がありますか?
お気に入り
プレゼンター/ビューモデル:
public void DeleteCustomers()
{
foreach(...SelectedCustomers)
{
customerService.DeleteCustomer(item);
}
}
また
public void DeleteCustomers()
{
customerService.DeleteCustomers(SelectedCustomers);
// The DataProvider is enumerating the list...
}
何が良いと思いますか?