public AppManCoEmailViewModel(Entities.AppManCoEmail appManCoEmail) { this.Id = appManCoEmail.Id; this.AccountNumber = appManCoEmail.AccountNumber; this.Email = appManCoEmail.Email; this.ApplicationViewModel = new ApplicationViewModel(appManCoEmail.Application); this.ManCoViewModel = new ManCoViewModel(appManCoEmail.ManCo); this.DocTypeViewModel = new DocTypeViewModel(appManCoEmail.DocType); }
public EditAppManCoEmailViewModel(IList <Entities.Application> applications, IList <Entities.ManCo> manCos, IList <Entities.DocType> docTypes, Entities.AppManCoEmail appManCoEmail) { Applications = new ApplicationsViewModel(); Applications.AddApplications(applications); ManCos = new ManCosViewModel(); ManCos.AddMancos(manCos); DocTypes = new DocTypesViewModel(); DocTypes.AddDocTypes(docTypes); Id = appManCoEmail.Id; DocTypeId = appManCoEmail.DocTypeId; ManCoId = appManCoEmail.ManCoId; ApplicationId = appManCoEmail.ApplicationId; OtfEmail = appManCoEmail.Email; OrigionalEmail = appManCoEmail.Email; OtfAccountNumber = appManCoEmail.AccountNumber; //ConfirmEmail = string.Empty; }