public ActionResult <IDataPacker> WinOpen()
        {
            var packer = new DataPacker();
            int cateId = 0;

            var category    = _reportService.Retrieve("d_dddw_category");
            var subCategory = _reportService.Retrieve("d_subcategory", cateId);

            if (category.RowCount == 0 || subCategory.RowCount == 0)
            {
                return(NotFound());
            }

            packer.AddDataStore("Category", category);
            packer.AddDataStore("SubCategory", subCategory, true);

            return(packer);
        }
        public ActionResult <IDataPacker> WinOpen()
        {
            var packer = new DataPacker();
            int cateId = 0;

            var category    = _reportService.Retrieve <Category>();
            var subCategory = _reportService.Retrieve <SubCategory>(cateId);

            if (category.Count == 0 || subCategory.Count == 0)
            {
                return(NotFound());
            }

            packer.AddModelStore("Category", category);
            packer.AddModelStore("SubCategory", subCategory);

            return(packer);
        }