public object CheckReportData(ReportType type, ReportTimePeriod timePeriod, Guid[] managers)
        {
            if (!Global.CanCreateReports)
            {
                throw CRMSecurity.CreateSecurityException();
            }

            return(new
            {
                hasData = ReportHelper.CheckReportData(type, timePeriod, managers),
                missingRates = ReportHelper.GetMissingRates(type)
            });
        }
Example #2
0
        public object CheckReportData([FromBody] ReportDataRequestDto inDto)
        {
            var type       = inDto.Type;
            var timePeriod = inDto.TimePeriod;
            var managers   = inDto.Managers;

            if (!_global.CanCreateReports)
            {
                throw _crmSecurity.CreateSecurityException();
            }

            return(new
            {
                hasData = _reportHelper.CheckReportData(type, timePeriod, managers),
                missingRates = _reportHelper.GetMissingRates(type)
            });
        }