-
Notifications
You must be signed in to change notification settings - Fork 24
/
CustomMVCReportingControllers.cs
47 lines (41 loc) · 1.77 KB
/
CustomMVCReportingControllers.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System.Threading.Tasks;
using DevExpress.AspNetCore.Reporting.QueryBuilder;
using DevExpress.AspNetCore.Reporting.QueryBuilder.Native.Services;
using DevExpress.AspNetCore.Reporting.ReportDesigner;
using DevExpress.AspNetCore.Reporting.ReportDesigner.Native.Services;
using DevExpress.AspNetCore.Reporting.WebDocumentViewer;
using DevExpress.AspNetCore.Reporting.WebDocumentViewer.Native.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace AspNetCore.Reporting.Common.Controllers {
[Authorize]
[Route("DXXRDVMVC")]
[AutoValidateAntiforgeryToken]
public class CustomMVCWebDocumentViewerController : WebDocumentViewerController {
public CustomMVCWebDocumentViewerController(IWebDocumentViewerMvcControllerService controllerService) : base(controllerService) {
}
public override Task<IActionResult> Invoke() {
return base.Invoke();
}
}
[Authorize]
[Route("DXXQBMVC")]
[AutoValidateAntiforgeryToken]
public class CustomMVCQueryBuilderController : QueryBuilderController {
public CustomMVCQueryBuilderController(IQueryBuilderMvcControllerService controllerService) : base(controllerService) {
}
public override Task<IActionResult> Invoke() {
return base.Invoke();
}
}
[Authorize]
[Route("DXXRDMVC")]
[AutoValidateAntiforgeryToken]
public class CustomMVCReportDesignerController : ReportDesignerController {
public CustomMVCReportDesignerController(IReportDesignerMvcControllerService controllerService) : base(controllerService) {
}
public override Task<IActionResult> Invoke() {
return base.Invoke();
}
}
}