WebController.tt 918 B

12345678910111213141516171819202122232425262728293031323334
  1. <#@ template language="C#" #>
  2. <#@ assembly name="System.Core" #>
  3. <#@ import namespace="System.Linq" #>
  4. <#@ import namespace="System.Text" #>
  5. <#@ import namespace="System.Collections.Generic" #>
  6. using Abp.AspNetCore.Mvc.Authorization;
  7. using Abp.Auditing;
  8. using Abp.Runtime.Caching;
  9. using Microsoft.AspNetCore.Mvc;
  10. using <#=Model.ProjectName#>.Controllers;
  11. using <#=Model.ProjectName#>.Query;
  12. namespace <#=Model.ProjectName#>.Web.Controllers
  13. {
  14. [AbpMvcAuthorize, DisableAuditing]
  15. public class <#=Model.FileName#>Controller : <#=Model.ProjectName#>ControllerBase
  16. {
  17. private readonly QueryAppService _queryApp;
  18. public <#=Model.FileName#>Controller(QueryAppService queryApp, ICacheManager cacheManager )
  19. {
  20. _queryApp = queryApp;
  21. CacheManager = cacheManager;
  22. }
  23. public ActionResult <#=Model.FileName#>()
  24. {
  25. return View();
  26. }
  27. }
  28. }