public ClaimViewModel(ClaimDomainModel domainModel) : this() { Id = domainModel.Id; //Status = domainModel.Status.ToString(); SetPolicyProperties(domainModel.Policy); }
public EditClaimViewModel(ClaimDomainModel claim) { Id = claim.Id; FirstName = claim.FirstName; LastName = claim.LastName; PolicyId = claim.Policy.Id; Status = claim.Status; WhenStarted = claim.WhenStarted; Notes = new List<NoteViewModel>(); foreach(var note in claim.Notes) Notes.Add(new NoteViewModel(note)); }