c# - Create excel file from domain model object - where should this code go? -


I have a dashboard with several tables that I should be able to export to the best. Each table is based on a domain model object collection from my domain model.

I've written a few code that will collect and create excel file from the data contained in it.

Where does this code go? As the first pass, I was trapped in my controlling method. Once I create an Excel file, I will come back to that controller. Simple, but clearly this is not good but I can not even imagine that it is also in my domain.

Where should this code go? I can not classify it as a controller logic, domain argument, or something else. I am basically serialing a domain object in Excel file into data and returning to the client.

What I would like to do eventually, this code captures the data as URL from JS and it serializes it again in an excel file, I do not know where this code should go.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -