Mineplex2018-withcommit/Website/packages/MvcScaffolding.1.0.7/tools/Action/Action.cs.t4
Jonathan Williams 3fb52c5c71 Initial Commit
2013-08-27 08:14:08 -07:00

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
});
<# } #>
}