public ActionResult DormantCustomers(int? page, int? pageSize, string keyword = "",
            ReportSort sortBy = ReportSort.LastLogonDate, bool isDesc = false)
        {
            int _currentPageIndex = page.HasValue ? page.Value - 1 : 0;
            int _pageSize = pageSize.HasValue ? pageSize.Value : 10;

            var list = AdminServices.Report.GetDormantCustomers(keyword, _currentPageIndex, _pageSize, sortBy, isDesc);

            var model = new DormantCustomersViewModel(keyword, sortBy, isDesc, _pageSize) { DormantCustomers = list };

            if (!Request.IsAjaxRequest())
            {
                return View(model);
            }

            return PartialView("_ajaxDormantCustomers", model);
        }
        public ActionResult DormantCustomersPaging(int? page, int? pageSize, string keyword = "",
            ReportSort sortBy = ReportSort.LastLogonDate, bool isDesc = false,
            int startDay = 0, int startMonth = 0, int startYear = 0,
            int endDay = 0, int endMonth = 0, int endYear = 0)
        {
            DateTime startDate;
            DateTime endDate;

            if (startYear == 0 || endYear == 0)
            {
                startDate = DateTime.Now.AddDays(-7);
                endDate = DateTime.Now;
            }
            else
            {
                startDate = new DateTime(startYear, startMonth, startDay);
                endDate = new DateTime(endYear, endMonth, endDay);
            }

            int _currentPageIndex = page.HasValue ? page.Value - 1 : 0;
            int _pageSize = pageSize.HasValue ? pageSize.Value : 10;

            var list = AdminServices.Report.GetDormantCustomers(keyword, _currentPageIndex, _pageSize, sortBy, isDesc);

            var model = new DormantCustomersViewModel(keyword, sortBy, isDesc, _pageSize) { DormantCustomers = list };

            return PartialView("~/Areas/Admin/Views/Dashboard/_ajaxDormantCustomers.cshtml", model);
        }