<#
// DataMap
foreach (var column in columns)
{
	var dataMap = column["DataMap"];
	if(dataMap["IsValid"] && dataMap["UseRemoteBinding"])
	{
		var actionUrl = dataMap["ReadActionUrl"];
		if(dataMap["Source"] == null)
		{
#>
        public ActionResult <#= actionUrl #>()
        {
            throw new NotImplementedException();
        }
<#
		}
		else
		{
#>
        public ActionResult <#= actionUrl #>([C1JsonRequest] CollectionViewRequest<<#= dataMap["Source"]["TypeName"] #>> requestData)
        {
            return this.C1Json(CollectionViewHelper.Read(requestData, db.<#= dataMap["EntitySetName"] #>));
        }
<#
		}
	}
}
#>