Exemple #1
0
        public async Task <ActionResult> Index()
        {
            var categoryNames = _categoryService.GetCategoryNames();
            var customersDto  = await _customerService.GetPage(DateTime.MinValue, DateTime.Now, 0);

            int totalCount = await _customerService.GetCount(DateTime.MinValue, DateTime.Now, 0, "");

            var vm = CustomerFormViewModel.Create(new StaticPagedList <CustomerListDto>(customersDto, 1, 10, totalCount), null, null, categoryNames, 0, null);

            //vm.SelectedCustomer = new CustomerDetailsDto();
            return(View(vm));
        }