Esempio n. 1
0
        public ActionResult SearchByIdCombination(SearchViewModel searchModel)
        {
            Logger.Debug("SearchByIdCombination|Search ID combination: " +
                         searchModel.SeachIdCombination.IdType + "|" +
                         searchModel.SeachIdCombination.IdNumber + "|" +
                         searchModel.SeachIdCombination.IdIssuedCountry);
            IList <ICustomerVO> customerList = new List <ICustomerVO>();

            ICustomerVO customer = CustomerBO.RetrieveCustomerByIdCombination(
                searchModel.SeachIdCombination.IdType,
                searchModel.SeachIdCombination.IdNumber,
                searchModel.SeachIdCombination.IdIssuedCountry);

            if (customer != null)
            {
                customerList.Add(customer);
            }

            Logger.Debug("SearchByIdCombination|Search Result: " + (customerList != null ? customerList.Count : 0));

            TempData["SearchResultList"] = customerList;
            return(RedirectToAction("ViewSearchResult"));
        }