コード例 #1
0
        public HttpResponseMessage Post(CountrySpecificCustomerViewModel viewModel)
        {
            ServiceResponseBase response = _countrySpecificCustomerService.InsertCountrySpecificCustomer(new InsertCountrySpecificCustomerRequest()
            {
                CountrySpecificCustomer = viewModel
            });

            return(Request.BuildResponse(response));
        }
コード例 #2
0
 private CountrySpecificCustomer BuildCountrySpecificCustomer(CountrySpecificCustomerViewModel viewModel)
 {
     return(new CountrySpecificCustomer(_countryFactory.CreateCountry(viewModel.CountryCode))
     {
         Age = viewModel.Age,
         Email = viewModel.Email,
         FirstName = viewModel.FirstName,
         NickName = viewModel.NickName
     });
 }