Distribution of responsibilities of an agenda module

Asked

Viewed 52 times

1

In an application, I need to present a calendar/calendar, which is composed of events and locations. I’m using the concept of Positorios, where I store all queries to a particular entity. In this case, events and locations have their respective locations.

My question is: when I need to set my agenda in this application, how would the distribution of responsibilities for presenting this agenda/calendar?

Currently, the agenda controller, communicates with events and location locations, formats the data and provides for view. According to the mvc standard this is wrong.

It would be good practice to create a calendar repository and there I communicate with the events and locations positions to then assemble my data and provide pro controller?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.