From cb8ab5232710fcf07374833a3ab463eb438dbf70 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 9 Dec 2020 00:38:25 +0000 Subject: [PATCH] --- server/AyaNova/biz/CustomerBiz.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/server/AyaNova/biz/CustomerBiz.cs b/server/AyaNova/biz/CustomerBiz.cs index e8cfafce..5ac84f53 100644 --- a/server/AyaNova/biz/CustomerBiz.cs +++ b/server/AyaNova/biz/CustomerBiz.cs @@ -303,12 +303,15 @@ namespace AyaNova.Biz //Referential integrity error - if (await ct.User.AnyAsync(z => z.CustomerId == inObj.Id) == true) - { - //Note: errorbox will ensure it appears in the general errror box and not field specific - //the translation key is to indicate what the linked object is that is causing the error - AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "errorbox", "LT:Contact"); - } + //Just an example + // if (await ct.User.AnyAsync(z => z.CustomerId == inObj.Id) == true) + // { + // //Note: errorbox will ensure it appears in the general errror box and not field specific + // //the translation key is to indicate what the linked object is that is causing the error + // AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "errorbox", "LT:Contact"); + // } + + //return await Task.CompletedTask; }