This commit is contained in:
@@ -266,8 +266,9 @@ namespace AyaNova.Biz
|
||||
|
||||
//PartInventory record?
|
||||
if (await ct.PartInventory.AnyAsync(m => m.PartWarehouseId == inObj.Id))
|
||||
{
|
||||
{
|
||||
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("PartInventoryTransaction"));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -831,8 +831,8 @@ namespace AyaNova.Biz
|
||||
//if (await ct.Event.Select(z => z).Where(z => z.UserId == inObj.Id).Count() > 0)
|
||||
if (await ct.Event.AnyAsync(z => z.UserId == inObj.Id))
|
||||
{
|
||||
//todo: Hold up, shouldt this be: AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("NotifySubscription"));
|
||||
AddError(ApiErrorCode.INVALID_OPERATION, null, await Translate("ErrorDBForeignKeyViolation"));
|
||||
//Theres no more specific error to show for this
|
||||
AddError(ApiErrorCode.INVALID_OPERATION, "generalerror", await Translate("ErrorDBForeignKeyViolation"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user