ASP .NET MVC Application UML class diagram

832 views Asked by At

What is a correct way to draw a class diagram for an MVC web application? For example, I have two Controllers (Controller1, Controller2), a Model (Model, which is a wrapper for some wcf service), and a View (Index.cshtml). Controller1 creates an instance of a Model and calls its methods. The View communicates with Controller1 and 2 using ajax. Controller2 sends an asynchronous messages to the View.

1

There are 1 answers

0
qwerty_so On

As said, your class diagram can not express behavior. So basically it could look like this:

enter image description here

To picture the behavior you can use sequence diagram (but you did not ask for it).