Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Are you sure about that? If I took the logic out of the domain entities then my models become anemic and aren't self-validating. Commented Sep 9, 2018 at 12:08
  • @user1560457 I think terminology might be confusing things? It's physically impossible to send logic over the wire. Logic can only exist in your MVC app or in your API. You can send data (messages) between those applications, but messages aren't domain entities. I would think that your domain entities should exist only inside your API; the MVC app shouldn't have any knowledge of domain entities. The only thing the MVC app should know how to do is to send/receive messages to/from the API. Also, you don't need self-validating messages since validation is a responsibility for the API. Commented Sep 9, 2018 at 13:47