You could implement this in abstract Service or Repository/RepositoryAsync classes however this would dictate that every entity would do a soft delete moving forward, I would still implement the full Service pattern and for each entity that requires a soft delete, override Delete in each Service e.g. IProductService, ProductService and in ProductService do a soft delete vs. a hard one.
↧