title: I am trying to set properties inside a class in ASP.NET MVC
body: <p>I am trying to set properties in this class:</p>
  <pre><code>public class ApplicationUser
  {
      public string Id { get; set; }
      public Name Name { get; set; }
      public Age Age { get; set; }
      public Household Household { get; set; }
      public MaritalStatus MaritalStatus { get; set; }
      public Kids Kids { get; set; }
      public Gender Gender { get; set; }
      public Address Address { get; set; }
      public Photo Photo { get; set; }
      public Status Status { get; set; }    
  }
  </code></pre>
  <p>Here I am trying to set the Ids:</p>
  <pre><code>var applicationUser = new ApplicationUser()
  {
     Id = user.Id,
     Name = new Name() { Id = user.Id },
     Age = new Age() { Id = user.Id },
     Address = new Address() { Id = user.Id },
     Household = new Household() { Id = user.Id },
  };
  </code></pre>