This commit is contained in:
2022-12-23 00:04:47 +00:00
parent 5da208d0ee
commit 009781e95a
6 changed files with 115 additions and 5 deletions

View File

@@ -225,8 +225,7 @@ namespace Sockeye.Biz
private async Task ValidateCanDeleteAsync(License inObj)
{
if (await ct.SubscriptionServer.AnyAsync(m => m.LicenseId == inObj.Id))
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("SubscriptionServer"));
await Task.CompletedTask;
}