Beispiel #1
0
        public JsonResult GetCustomerDemographic(System.String id)
        {
            DataTableViewModel data1;

            GetCustomerDemographicRequest request = new GetCustomerDemographicRequest();

            request.CustomerTypeID = id;
            DetailCustomerDemographic_CustomerDemographicDetailView data = _customerDemographicService.GetCustomerDemographic(request).CustomerDemographic.ConvertToDetailCustomerDemographic_CustomerDemographicDetailView();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetDetail(System.String id)
        {
            CustomerDemographicDetailView vm      = new CustomerDemographicDetailView();
            GetCustomerDemographicRequest request = new GetCustomerDemographicRequest();

            request.CustomerTypeID = id;
            GetCustomerDemographicResponse response = _customerDemographicService.GetCustomerDemographic(request);

            if (response.CustomerDemographicFound)
            {
                vm = response.CustomerDemographic.ConvertToCustomerDemographicDetailView();
            }

            return(Json(vm, JsonRequestBehavior.AllowGet));
        }