12 lines
323 B
Plaintext
12 lines
323 B
Plaintext
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #>
|
|
<# var viewModel = (EnvDTE.CodeType)Model.ViewModel; #>
|
|
public ViewResult <#= Model.Action #>()
|
|
{
|
|
<# if (viewModel == null) { #>
|
|
return View();
|
|
<# } else { #>
|
|
return View(new <#= viewModel.Name #> {
|
|
// Populate properties here
|
|
});
|
|
<# } #>
|
|
} |