I've based a dynamic css solution as mentioned here:
I notice the inherited PartialViewResult only has a getter for the Model, is there another way I can implement this functionality where HttpContext.Response.ContentType = "text/css" and I can send in a model like you can with a partialview?
Simply adapt the custom action result so that it takes a model:
and then:
and in the view: