public UserProfileViewModel(RegisterModel profile) { this.MyProfile = profile; AllCarriers = new AspAppServicesContext().Carriers.ToList(); selCarrier = new SelectList(AllCarriers, "ID", "Name", this.MyProfile.CarrierID); }
public UserProfileViewModel() { AllCarriers = new AspAppServicesContext().Carriers.ToList(); selCarrier = new SelectList(AllCarriers, "ID", "Name", null); }