Doubt AngularJS - DDD - Graphics

0

Good evening guys.

I am developing a finance control application with revenue, expenses, transfers between accounts, reports and graphics in angularjs + webapi + ddd + automapper + injection of dependencies to study new technologies, as I currently work with WebForms. >

I have created all (Domains, Applications, Services, Repository, etc.).

My big question is this: In the registration screens I basically return the entire object in the controller of each entity (domain), but in the graph screen by type of expense for example, I can not do this, since I must return the total amount of expenses registered for each type in period. In WebForms I would create a custom class with the required fields and would make a select new {} direct in the link setting the value of each field, however, in ddd I am forced to instantiate the fixed fields of the domain. Is there a way to create a custom view for the return of a query?

    
asked by anonymous 06.06.2018 / 03:52

0 answers