This commit is contained in:
2019-11-22 00:03:11 +00:00
parent cfdaf0a54f
commit 12c746c4fa

View File

@@ -40,7 +40,8 @@ namespace AyaNova.Biz
object propertyValue = proposedObject.GetType().GetProperty(RequiredPropertyName).GetValue(proposedObject, null);
if (propertyValue == null || string.IsNullOrWhiteSpace(propertyValue.ToString()))
biz.AddError(ApiErrorCode.VALIDATION_REQUIRED, FldLtKey);
//biz.AddError(ApiErrorCode.VALIDATION_REQUIRED, FldLtKey);//was returning the ltkey in the error but that's not a match to the client end object so instead...
biz.AddError(ApiErrorCode.VALIDATION_REQUIRED, RequiredPropertyName);
}
}