문제

I have businesslogic in an MVVM application - not really "data" but real logic, which mean "rules". Example: Dragging items inside a wpf TreeView, where each object is based on a viewmodel and has properties that depend upon business cases. Sure, these properties in the viewmodel are "business-specific". But I tend to not put a static, like "CanAcceptDragObject()", under "viewmodel" or "Model". What 's the common local place for such general (mostly static), business-specific code ?

도움이 되었습니까?

해결책

I am having a hard time understanding your overall question but to answer your specific question, "where do I put business logic?" The answer, in most cases is the Model.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top