public async Task Should_Success_Get_Report_Data_Null_Parameter()
        {
            var dbContext = _dbContext(GetCurrentMethod());
            ExternalPurchaseOrderFacade externalPurchaseOrderFacade = new ExternalPurchaseOrderFacade(GetServiceProvider(GetCurrentMethod()).Object, dbContext);
            MonitoringPriceFacade       monitoringPriceFacade       = new MonitoringPriceFacade(GetServiceProvider(GetCurrentMethod()).Object, dbContext);
            ExternalPurchaseOrder       modelEPO = await _dataUtilEPO(externalPurchaseOrderFacade, GetCurrentMethod()).GetTestDataMP("Unit test");

            var Response = monitoringPriceFacade.GetDisplayReport(null, null, null, 1, 50, "{}", 7);

            Assert.NotEqual(Response.Item2, -1);
        }
        public IActionResult GetDisplay(string product, 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 = _facade.GetDisplayReport(product, dateFrom, dateTo, page, size, Order, offset);

                return(Ok(new
                {
                    apiVersion = ApiVersion,
                    data = data.Item1,
                    info = new { total = data.Item2 }
                }));
            }
            catch (Exception e)
            {
                Dictionary <string, object> Result =
                    new ResultFormatter(ApiVersion, General.INTERNAL_ERROR_STATUS_CODE, e.Message)
                    .Fail();
                return(StatusCode(General.INTERNAL_ERROR_STATUS_CODE, Result));
            }
        }