Is it OK to have auxiliary methods inside the controller?
Sometimes I need to have small auxiliary methods specific for some controller, is it OK to actually have them inside the controller class? My concern is that these methods are not supposed to be routed/reachable th开发者_开发问答rough URL.
Yes, it is OK. You may either make these methods private, or mark them as [NonAction]
attribute: in both cases they won't be routed to.
精彩评论