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

10 lines
321 B
Plaintext
Raw Normal View History

2013-08-27 17:14:08 +02:00
<#@ Template Language="VB" HostSpecific="True" Inherits="DynamicTransform" #>
<# Dim viewModel = CType(Model.ViewModel, EnvDTE.CodeType) #>
Public Function <#= Model.Action #>() As ViewResult
<# If viewModel Is Nothing Then #>
Return View()
<# Else #>
Return View(New <#= viewModel.Name #>())
<# End If #>
End Function