public IActionResult ProductType(int productTypeId, short?page = 1)
        {
            ProductSearchModel searchModel = new ProductSearchModel
            {
                ProductTypeId     = productTypeId,
                Status            = ProductStatus.Active,
                Active            = true,
                ProductTypeStatus = ProductTypeStatus.Active
            };

            ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce;
            return(View(new ProductsListViewModel
            {
                Products = eCommerce.GetProductsByProductTypeId(searchModel, (page - 1) * recordsPerPage, recordsPerPage),
                PagingInfo = new PagingInfo
                {
                    CurrentPage = (short)page,
                    RecordsPerPage = recordsPerPage,
                    TotalRecords = eCommerce.CountProductsByProductTypeId(searchModel)
                },
                SearchModel = searchModel
            }));
        }
        public IActionResult Product(int productTypeId, decimal?price, short?priceIndication, ProductStatus?status, bool?active, short?page = 1)
        {
            ProductSearchModel searchModel = new ProductSearchModel
            {
                ProductTypeId   = productTypeId,
                Price           = price,
                PriceIndication = priceIndication,
                Status          = status,
                Active          = active
            };

            ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce;
            return(View(new ProductsListViewModel
            {
                Products = eCommerce.GetProductsByProductTypeId(searchModel, (page - 1) * recordsPerPage, recordsPerPage),
                PagingInfo = new PagingInfo
                {
                    CurrentPage = (short)page,
                    RecordsPerPage = recordsPerPage,
                    TotalRecords = eCommerce.CountProductsByProductTypeId(searchModel)
                },
                SearchModel = searchModel
            }));
        }