This commit is contained in:
2021-05-07 18:39:45 +00:00
parent 7782259944
commit e057471000

View File

@@ -1153,18 +1153,18 @@ namespace AyaNova.Biz
// // //TEST TEST TEST
if (string.IsNullOrWhiteSpace(proposedObj.Notes))
{
AddError(ApiErrorCode.VALIDATION_REQUIRED, "Notes");
}
// if (string.IsNullOrWhiteSpace(proposedObj.Notes))
// {
// AddError(ApiErrorCode.VALIDATION_REQUIRED, "Notes");
// }
// if (proposedObj.Notes.Contains("blah"))
// {
// ;
// }
if (proposedObj.Notes != null && proposedObj.Notes.Contains("generalerror"))
{
AddError(ApiErrorCode.API_SERVER_ERROR, "generalerror", "Test general error");
}
// if (proposedObj.Notes != null && proposedObj.Notes.Contains("generalerror"))
// {
// AddError(ApiErrorCode.API_SERVER_ERROR, "generalerror", "Test general error");
// }
// if (proposedObj.Notes != null && proposedObj.Notes.Contains("aytesterror"))
// {
// AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "Notes", "SAVE TEST ERROR");