private ShippingBillingViewModel GetShippingBilling(OrderInfo info) { var view = new ShippingBillingViewModel { ShippingFirstName = info.ShippingFirstName, ShippingLastName = info.ShippingLastName, ShippingStreetName = info.ShippingStreetName, ShippingHouseNumber = info.ShippingHouseNumber, ShippingCity = info.ShippingCity, ShippingZipCode = info.ShippingZipCode, ShippingCountry = info.ShippingCountry, BillingFirstName = info.BillingFirstName, BillingLastName = info.BillingLastName, BillingStreetName = info.BillingStreetName, BillingHouseNumber = info.BillingHouseNumber, BillingCity = info.BillingCity, BillingZipCode = info.BillingZipCode, BillingCountry = info.BillingCounry, }; return(view); }
public CheckOutInputModel GetShippingBillingViewModel(string id) { CheckOutInputModel data = new CheckOutInputModel(); ShippingBillingViewModel shippingBilling = _userRepo.GetShippingBilling(id); if (shippingBilling != null) { data.ShippingFirstName = shippingBilling.ShippingFirstName; data.ShippingLastName = shippingBilling.ShippingLastName; data.ShippingStreetName = shippingBilling.ShippingStreetName; data.ShippingHouseNumber = shippingBilling.ShippingHouseNumber; data.ShippingCity = shippingBilling.ShippingCity; data.ShippingZipCode = shippingBilling.ShippingZipCode; data.ShippingCountry = shippingBilling.ShippingCountry; data.BillingFirstName = shippingBilling.BillingFirstName; data.BillingLastName = shippingBilling.BillingLastName; data.BillingStreetName = shippingBilling.BillingStreetName; data.BillingHouseNumber = shippingBilling.BillingHouseNumber; data.BillingCity = shippingBilling.BillingCity; data.BillingZipCode = shippingBilling.BillingZipCode; data.BillingCountry = shippingBilling.BillingCountry; } return(data); }