This commit is contained in:
2020-12-09 00:38:25 +00:00
parent fa24007ba7
commit cb8ab52327

View File

@@ -303,12 +303,15 @@ namespace AyaNova.Biz
//Referential integrity error //Referential integrity error
if (await ct.User.AnyAsync(z => z.CustomerId == inObj.Id) == true) //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 // //Note: errorbox will ensure it appears in the general errror box and not field specific
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "errorbox", "LT:Contact"); // //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;
} }