public IView SelectedView(string controllerName)
{
if (this.javascript.Checked)
{
return new JavascriptView(controllerName);
}
if (this.json.Checked)
{
return new JSONView(controllerName);
}
if (this.xml.Checked)
{
return new XMLView(controllerName);
}
if (this.html.Checked)
{
return new HTMLView(controllerName);
}
return null;
}