This commit is contained in:
2025-03-11 20:36:00 +04:00
parent b481914563
commit 807ac64a9f

View File

@@ -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");
}
}
}