Exemplo n.º 1
0
        public IHttpActionResult GetReportingPeriodsToCreatePlan(int organizationId)
        {
            if (!_userContext.CurrentUserIsSystemUser())
            {
                return(Unauthorized());
            }

            return(_queryService.GetReportingPeriods(organizationId).ToJson(this));
        }
 //remove this once call is made to the reportingperiodcontroller
 public ReportingPeriodViewModel[] GetReportingPeriods(int organizationId)
 {
     return(_reportingPeriodQueryService.GetReportingPeriods(organizationId));
 }