public IHttpActionResult GetReportData(string season) { // authentication - check if user is in admin group if (fwBll.GetUserGroup(ControllerContext.GetAuthUserId()) != 1) { return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED))); } executor.identifier = Helper.AuthHelper.GetCurrentUserFolder(ControllerContext); Library.DTO.Notification notification; System.Collections.Hashtable inputs = new System.Collections.Hashtable(); inputs["season"] = season; object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "getreportdata", inputs, out notification); return(Ok(new Library.DTO.ReturnData <object>() { Data = data, Message = notification })); }