This commit is contained in:
2020-01-07 21:15:03 +00:00
parent 8335556e5f
commit 109752125e
3 changed files with 6 additions and 2 deletions

View File

@@ -414,7 +414,8 @@ namespace AyaNova.Biz
AddError(ApiErrorCode.VALIDATION_STARTDATE_AFTER_ENDDATE, "StartDate");
//Enum is valid value
//Note: because of the way the flags work as powers of 2 and with the 1 being the first flag value, basically any value up to the "All" value will be valid
//because you can make any number from 0 to all using any combination of the flags so the only thing that will fail is less than zero or greater than All
if (!proposedObj.Roles.IsValid())
{
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "Roles");