RickStrahl / WestwindToolkit

A utility toolkit for .NET development from Core to Web
273 stars 124 forks source link

Can not Create Controller instance by parameters outside of MVC #10

Closed bezzad closed 8 years ago

bezzad commented 8 years ago

At the Westwind.Web.Mvc.ViewRender class has this method:

public static T CreateController<T>(RouteData routeData = null)
            where T : Controller, new()

The CreateController to create an MVC Controller instance.

But when the MVC Controller Methods have parameters and it is not parameter less then that have problem!

Thanks a lot for interested library.

RickStrahl commented 8 years ago

Added parameters list. 588dccd

bezzad commented 8 years ago

Very thanks @RickStrahl