public IActionResult GetReport(DateTime?dateFrom, DateTime?dateTo, int page, int size, string Order = "{}") { int offset = Convert.ToInt32(Request.Headers["x-timezone-offset"]); string accept = Request.Headers["Accept"]; try { var data = _service.GetReportData(dateFrom, dateTo, offset); return(Ok(new { apiVersion = ApiVersion, data = data, message = General.OK_MESSAGE, statusCode = General.OK_STATUS_CODE })); } catch (Exception ex) { return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message)); } }