|
-
Jan 23rd, 2012, 05:33 AM
#3
Thread Starter
Fanatic Member
Re: Refactoring a partial View.
I cant place this in a base class as We are already using an abstract class for all our controllers at this level. I dont want to expose this method to everything, only these 2 controllers.
I know I have it declared as private at the moment. Ideally what I really want to do, would be to push this back to our service Layer, but because I am returning a PartialView, it will break our model.
In my Controller Folder, we have all our controller files as you'd expect. Can I introduce a file here and call it something like 'SharedController', place my private function here and make it public, and call it from the original 2 controllers?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|