fix
This commit is contained in:
@@ -29,6 +29,7 @@ namespace CandyHouseBase.DataModels
|
||||
if (Title.IsEmpty()) throw new ValidationException("Field Title is empty");
|
||||
if (!Enum.IsDefined(typeof(StorageType), StorageType))
|
||||
throw new ValidationException($"Invalid StorageType: {StorageType}");
|
||||
if (Ingredients == null) throw new ValidationException($"Ingredients is null");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user