ASP.net MVC 4 Controller Functions -
i have application have display data in table format. end user has 4 different ways want displayed have 1 model different linq statements on each controller manipulate data. have 2 shared views hold controls (filter options drop downs, text boxes, etc...) , result set.
my question this: how can sub out repetitive functions? have drop down boxes use filter result set and, forgive ignorance, call same linq statement on each controller load viewdata drop down.
as can see inefficient, have added "utlitycontroller" project in hopes can place function , few others there, still have same output on view... haven't figured out yet , thought reach out community help.
Comments
Post a Comment