<#@ template language="C#" HostSpecific="True" #>
<#@ output extension="cs" #>
<#@ include file="..\..\ControllerHead.cs.include.t4" #>
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using System.Data.SqlClient;
using System.IO;

// This code was generated by C1 Scaffolder.

namespace <#= Namespace #>
{
    public class <#= ControllerName #> : Controller
    {
        //<#= DbContextsHolder #>
        public ActionResult <#= ViewName #>()
        {
            //<#= ViewBagsHolder #>
<#
if(Component["UseRemoteBind"] || string.IsNullOrEmpty(Component["EntitySetName"]))
{
#>
            return View();
<#
}
else
{
#>
            return View(db.<#= Component["EntitySetName"] #>);
<#
}
#>
        }

        //<#= ActionsHolder #>
    }
}
