There are cases when the amount and the unit of the ingredient don't match. E.g. 12 csipet. In those cases we should do an automatic conversion between the units following a predetermined rule (or set of rules).
This should be done by business logic extension in the ToString method of the ingredient and by adding an attribute to the measurement unit itself to define the rules to follow.
There are cases when the amount and the unit of the ingredient don't match. E.g. 12 csipet. In those cases we should do an automatic conversion between the units following a predetermined rule (or set of rules).
This should be done by business logic extension in the ToString method of the ingredient and by adding an attribute to the measurement unit itself to define the rules to follow.