Modeling Hysteresis For Two-Phase Flow In Porous Media: From Micro To Macro Scale