MVC2 Action to handle multiple models
问题 I've been looking around for an answer to this, which I can't believe hasn't been asked before, but with no luck I'm attempting here. I have a signup form which differs slightly based upon what type of participant the requester is. While writing tests for the solution, I realized that all actions did the same things, so I'm attempting to combine the actions into one using a strategy pattern. public abstract class BaseForm { common properties and methods } public class Form1 : BaseForm {