private void SetPolicyProperties(PolicyDomainModel policy)
 {
     if (policy == null) return;
       PolicyNumber = policy.Number;
       DeviceName = policy.DeviceName;
       SerialNumber = policy.SerialNumber;
 }
 public DeviceViewModel(PolicyDomainModel thing)
 {
   PolicyId = thing.Id;
   PolicyNumber = thing.Number;
   SerialNumber = thing.SerialNumber;
   Name = thing.DeviceName;
 }
Exemplo n.º 3
0
 public ClaimDomainModel(ClaimEntity claim)
 {
     Id               = claim.Id;
     WhenStarted      = claim.WhenCreated;
     WhenLastModified = claim.WhenLastModified;
     Policy           = new PolicyDomainModel(claim.Policy);
     Status           = new StatusDomainModel(claim.Status);
 }
        public ClaimDomainModel(ClaimEntity claim)
        {
            Id = claim.Id;
              WhenStarted = claim.WhenCreated;
              Policy = new PolicyDomainModel(claim.Policy);
              Status = claim.Status;
              UserId = claim.Policy.UserId;

              if (claim.Policy?.User == null) return;

              FirstName = claim.Policy.User.FirstName;
              LastName = claim.Policy.User.LastName;

              foreach (var note in claim.Notes)
              {
            Notes.Add(new NoteDomainModel(note));
              }
        }
        public ClaimDomainModel(ClaimEntity claim)
        {
            Id          = claim.Id;
            WhenStarted = claim.WhenCreated;
            Policy      = new PolicyDomainModel(claim.Policy);
            Status      = claim.Status;
            UserId      = claim.Policy.UserId;

            if (claim.Policy?.User == null)
            {
                return;
            }

            FirstName = claim.Policy.User.FirstName;
            LastName  = claim.Policy.User.LastName;

            foreach (var note in claim.Notes)
            {
                Notes.Add(new NoteDomainModel(note));
            }
        }
Exemplo n.º 6
0
 public ClaimDomainModel(ClaimEntity claim)
 {
     Id          = claim.Id;
     WhenStarted = claim.WhenCreated;
     Policy      = new PolicyDomainModel(claim.Policy);
 }