Mineplex2018-withcommit/Website/packages/MvcScaffolding.1.0.7/tools/Action/Action.cs.t4

12 lines
323 B
Plaintext
Raw Normal View History

2013-08-27 17:14:08 +02:00
<#@ 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
});
<# } #>
}