I have a page like so -
public partial class ProductDetailMixed : SessionPage, IProductDetailMixedView
{
public IProductService ProductService { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
Controller = new ProductDetailMixedController(this, ProductService);
OnLoadPage();
}
public event LoadPageEvent OnLoadPage;
public IProductDetailMixedController Controller { get; set; }
}
I have property injection so the instance of IProductService will be injected into the page, however what I would really like is to just create the controller like so -
Controller = new ProductDetailMixedController(this);
And then the Constructor of ProductDetailMixedController will just inject all the remaining parameters.. but how do I do this??