public DeliveryTypesPartial GetDeliveryTypePartial(int affiliateId, int paymentTypeId, int selectedDeliveryTypeId, decimal orderTotal) { DeliveryTypesPartial returnModel = new DeliveryTypesPartial(); returnModel.DeliveryTypes.AddRange(GetDeliveryTypes(affiliateId, paymentTypeId)); returnModel.SelectedDeliveryTypeId = selectedDeliveryTypeId; returnModel.OrderTotal = orderTotal; return(returnModel); }
public async Task <ActionResult> UpdatePaymentType(int affiliateId, int customerId, int paymentTypeId, string bic, string iban, string accountOwner, int selectedDeliveryTypeId, string orderItemsTotal) { int deliveryTypeId = selectedDeliveryTypeId; if (await Data.UpdatePaymentType(Request.HttpContext.User.Identity.Name, affiliateId, customerId, paymentTypeId, bic, iban, accountOwner).ConfigureAwait(false) == 2) { deliveryTypeId = 0; } DeliveryTypesPartial returnValue = Data.GetDeliveryTypePartial(affiliateId, paymentTypeId, deliveryTypeId, System.Convert.ToDecimal(orderItemsTotal, System.Globalization.CultureInfo.InvariantCulture)); return(PartialView("DeliveryPaymentDeliveryTypes", returnValue)); }