This sounds like a good occasion to publish our whiz bang MVC Function feature.
So instead of the "MVC Player" which only let you enter a "mvc route" which we would then "play" this thing let you turn both MVC controllers and MVC Actions into C1 Functions. This can be done in one of two ways. Either by decorating your MVC code with attributes (making C1 pick up your controllers / actions) or via an API, where you pass references to controllers / actions to "MVC Functions". The latter is nice if the MVC code is hands off for some reason or you just want the MVC code 100% pure. The attribute approach is nice if you like the MVC pattern and want to do custom development with it in C1.
We will post some documentation here shortly.
This is still in "pre release" state, but seems to work and so far we got good feedback on it.
To use it:
So instead of the "MVC Player" which only let you enter a "mvc route" which we would then "play" this thing let you turn both MVC controllers and MVC Actions into C1 Functions. This can be done in one of two ways. Either by decorating your MVC code with attributes (making C1 pick up your controllers / actions) or via an API, where you pass references to controllers / actions to "MVC Functions". The latter is nice if the MVC code is hands off for some reason or you just want the MVC code 100% pure. The attribute approach is nice if you like the MVC pattern and want to do custom development with it in C1.
We will post some documentation here shortly.
This is still in "pre release" state, but seems to work and so far we got good feedback on it.
To use it:
- Use the latest souces for C1 - MVF Functions will use some new core features.
-
Grap the Composite.AspNet.MvcFunctions package from https://c1packages.codeplex.com/SourceControl/latest