Possible Duplicate:
Render a view as a string
Hi
I am wondering is it possible to have in you C# code(through a scheduler that is on it's own thread and has no knowledge of httpcontext) a request that goes to a controller ?
//server side code
// do calculations
// post to a controller that takes in a list of view models
// do stuff with the collection of view models.
public myControllerIwantToCallFromServerSide(List<VM> viewModels)
{
// stuff here
}
I need some way to do an http request so that I can get a httpcontext as I need to a live http context to use a library(action mailer) that takes an mvc view and renders it into a email and sends it.