private void SetPropertiesForMoreThanThreeCarriers(List <MovementCarrier> sortedCarriersList) { for (int i = 0; i < sortedCarriersList.Count; i++) { var mcd = new MovementCarrierDetails { Order = AddOrdinal(sortedCarriersList[i].Order, sortedCarriersList.Count), Reg = sortedCarriersList[i].Carrier.Business.RegistrationNumber, Name = sortedCarriersList[i].Carrier.Business.Name, AddressViewModel = new AddressViewModel(sortedCarriersList[i].Carrier.Address), Tel = sortedCarriersList[i].Carrier.Contact.Telephone.ToFormattedContact(), Fax = sortedCarriersList[i].Carrier.Contact.Fax.ToFormattedContact(), Email = sortedCarriersList[i].Carrier.Contact.Email, ContactPerson = sortedCarriersList[i].Carrier.Contact.FullName }; CarrierDetails.Add(mcd); IsAnnexNeeded = true; } AnnexMessage = "See carriers annex"; }
private void SetPropertiesForMoreThanThreeCarriers(List<MovementCarrier> sortedCarriersList) { for (int i = 0; i < sortedCarriersList.Count; i++) { var mcd = new MovementCarrierDetails { Order = (i + 1).ToString(), Reg = sortedCarriersList[i].Carrier.Business.RegistrationNumber, Name = sortedCarriersList[i].Carrier.Business.Name, AddressViewModel = new AddressViewModel(sortedCarriersList[i].Carrier.Address), Tel = sortedCarriersList[i].Carrier.Contact.Telephone.ToFormattedContact(), Fax = sortedCarriersList[i].Carrier.Contact.Fax.ToFormattedContact(), Email = sortedCarriersList[i].Carrier.Contact.Email }; CarrierDetails.Add(mcd); IsAnnexNeeded = true; } AnnexMessage = "See carriers annex"; }