I have a simple model inside another model like this:
First Model
public class ReminderPushNotificationTest
{
public string UserName { get; set; }
....
public ReminderPushNotificationAndroidResult AndroidResult{ get; set; }
}
Second model
public class ReminderPushNotificationAndroidResult
{
public string Headers { get; set; }
public string Content { get; set; }
}
When I try to fill model I try something like:
var testModel = new ReminderPushNotificationTest
{
UserName = username,
AndroidResult.{Want property inside this model} = result.Header
}
How can I access that property to assign it?