Hello,
Welcome to our Microsoft Q&A platform!
According to the above code, it seems that you didn't encapsulate the related properties in the 'DealsTodayViewModel' class. Please add the get
and set
methods for the properties as below. Please make sure the properties of the PeriodTotals class are also encapsulated.
public class DealsTodayViewModel
{
public string ViewModelPeriod { get; set; }
public PeriodTotals Totals { get; set; }
public DealsTodayViewModel()
{
...
}
}
public class PeriodTotals
{
public string Period { get; set; }
...
}
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.