예제 #1
0
        public ViewResult SelectCustomers(Models.CustomerSelectionViewModel vm)
        {
            var results = _insuranceServices.GetContracts(vm.Criteria);

            vm.Companies = _insuranceServices.GetAllCompanies();
            vm.Contracts = results;
            return(View(vm));
        }
예제 #2
0
        public ViewResult SelectCustomers()
        {
            var mock = new Models.CustomerSelectionViewModel();

            mock.Companies = _insuranceServices.GetAllCompanies();
            // If Contracts is null an Exception is thrown!!!
            mock.Contracts = new List <Insurance.Services.DTO.ContractDTO>();
            return(View(mock));
        }
예제 #3
0
 public ActionResult AdvancedToSelectTemplate(Models.CustomerSelectionViewModel vm)
 {
     // Store Criteria into the session
     SessionHelper.Current.Criteria = vm.Criteria;
     return(RedirectToAction("SelectTemplate"));
 }