BasicController.cs 926 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Threading.Tasks;
  2. using System.Web.Mvc;
  3. using Abp.Web.Mvc.Authorization;
  4. using Abp.Runtime.Caching;
  5. using WeApp.BaseSystem.Query;
  6. namespace WeApp.Controllers
  7. {
  8. [AbpMvcAuthorize]
  9. public class BasicController : IwbControllerBase
  10. {
  11. public BasicController( ICacheManager cacheManager, QueryAppService queryApp)
  12. {
  13. QueryApp = queryApp;
  14. CacheManager = cacheManager;
  15. }
  16. protected QueryAppService QueryApp { get; }
  17. [AbpMvcAuthorize]
  18. public ActionResult GroupRole()
  19. {
  20. return View();
  21. }
  22. [AbpMvcAuthorize]
  23. public ActionResult Role()
  24. {
  25. return View();
  26. }
  27. [AbpMvcAuthorize]
  28. public async Task<ActionResult> PortraitRemark()
  29. {
  30. ViewBag.RemarkType = await QueryApp.GetPortraitRemarkTypeSelectStr();
  31. return View();
  32. }
  33. }
  34. }