private CountrySpecificCustomer BuildCountrySpecificCustomer(CountrySpecificCustomerViewModel viewModel) { return new CountrySpecificCustomer(_countryFactory.CreateCountry(viewModel.CountryCode)) { Age = viewModel.Age , Email = viewModel.Email , FirstName = viewModel.FirstName , NickName = viewModel.NickName }; }
public HttpResponseMessage Post(CountrySpecificCustomerViewModel viewModel) { ServiceResponseBase response = _countrySpecificCustomerService.InsertCountrySpecificCustomer(new InsertCountrySpecificCustomerRequest() { CountrySpecificCustomer = viewModel }); return Request.BuildResponse(response); }