私のビジネスレイヤーにこのようなメソッドがあるとしましょう:どの層がドメインモデルを話すべきか?
// This is in the business layer
public Result DeleteSomeDomainObject(????)
{
//Enforce business logic here.
//Delete records in the database
DAL. DeleteSomeDomainObject(???)
}
// This is in the data access layer
public Result DeleteSomeDomainObject(????)
{
// Delete records from the database.
}
これらのメソッドは、ドメインモデルのインスタンスかプライマリキーだけを取りますか?