jeudi 13 mai 2021

What is the relationship between MVVM and business layer?

I'm trying to make android application using MVVM pattern and 3-layer architecture. But I don't know what is the relationship between MVVM and business layer. I know MVVM pattern is in the presentation layer on 3-layer artchitecture and putting logic in viewmodel so that view should'n have any logic. (I saw Where to put business logic when working with mvvm)

Then what is the difference between viewmodel in MVVM and business layer? If MVVM is in the presentation layer, shouldn't viewmodel call the business layer instead of putting logic in itself?

I read many articles about it. But I'm stil confused. Any answer will be helpful. Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire