public ConsumerNotificationRecipient GetModel() { ConsumerNotificationRecipient model = new ConsumerNotificationRecipient(); model.Id = 0; model.Email = this.Email; model.Position = this.Position; model.Name = this.Name; model.AddedById = this.AddedById; model.UpdatedById = this.UpdatedById; model.DateCreated = this.DateCreated; model.DateUpdated = this.DateUpdated; return(model); }
public ConsumerNotificationRecipientViewModel(ConsumerNotificationRecipient model) { this.Id = model.Id; this.Email = model.Email; this.Position = model.Position; this.Name = model.Name; UpdatedById = model.UpdatedById; if (this.UpdatedById.HasValue) { this.UpdatedByName = model.SystemUser1.LastName + ", " + model.SystemUser1.FirstName; } AddedById = model.AddedById; this.AddedByName = model.SystemUser.LastName + ", " + model.SystemUser.FirstName; DateCreated = model.DateCreated; DateUpdated = model.DateUpdated; }