This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user