public async Task <IActionResult> CountByCustomerDate(CountByCustomerDateViewModel model)
 {
     if (ModelState.IsValid)
     {
         model.Customers = await GetCustomerCountsByDateAsync(model.Dau, model.Cuoi);
     }
     return(View(model));
 }
        public async Task <IActionResult> CountByCustomerDate()
        {
            var now   = DateTime.Today;
            var model = new CountByCustomerDateViewModel
            {
                Dau       = now,
                Cuoi      = now,
                Customers = await GetCustomerCountsByDateAsync(now, now)
            };

            return(View(model));
        }