/// <summary>
        /// Hiển thị danh sách khách hàng
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(int page = 1, string searchValue = "")
        {
            var model = new Models.CustomerPaginationResult()
            {
                Page     = page,
                PageSize = AppSettings.DefaultPageSize,
                RowCount = CatalogBLL.Customer_Count(searchValue),
                Data     = CatalogBLL.Customer_List(page, AppSettings.DefaultPageSize, searchValue),
            };

            return(View(model));
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            var model = new DashboardResult
            {
                sumSupplier = CatalogBLL.Supplier_Count(""),
                sumCustomer = CatalogBLL.Customer_Count(""),
                sumShipper  = CatalogBLL.Shipper_Count(""),
                sumCategory = CatalogBLL.Category_Count(""),
                sumProduct  = CatalogBLL.Product_Count("", "", ""),
                sumOrder    = SaleManagementBLL.Order_Count("", ""),
                sumEmployee = HumanResourceBLL.Employee_Count("", "")
            };

            return(View(model));
        }
        public static List <SelectListItem> Customer(bool allowSelectAll = true)
        {
            List <SelectListItem> list = new List <SelectListItem>();

            if (allowSelectAll)
            {
                list.Add(new SelectListItem()
                {
                    Value = "", Text = "-- All Customers --"
                });
            }
            foreach (var customer in CatalogBLL.Customers_List(1, CatalogBLL.Customer_Count(""), ""))
            {
                list.Add(new SelectListItem()
                {
                    Value = customer.CustomerID,
                    Text  = customer.CompanyName
                });
            }
            return(list);
        }