@using System @using System.Linq @using AutoRest.Core.Utilities @using AutoRest.CSharp.Model @inherits AutoRest.Core.Template @Header("// ") @EmptyLine using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace @Settings.Namespace { @foreach (var usingString in Model.Usings) { @:using @Settings.Namespace.@usingString; } @EmptyLine @if (!string.IsNullOrWhiteSpace(Model.Documentation)) { @:/// @:@WrapComment("/// ", Model.Documentation.EscapeXmlComment()) @:/// ` } [Route("@Model.BaseUrl")] public partial class @(Model.Name+"Controller : Controller") { @foreach (MethodCs method in Model.Methods.Where(m=>(m.MethodGroup.Name==Model.Name || m.MethodGroup.Name + "Operations" == Model.Name))) { @:@(Include(new ServiceMethodTemplate(), method)) @EmptyLine @: } } }