首先,我们先看模型如下:
public class Activity {
public int ActivityId { get; set; }
public string Scope { get; set; }
public string Name { get; set; }
public string Type { get; set; }
public string ActivityFromTime { get; set; }
public string ActivityToTime { get; set; }
public string Target { get; set; }
public string ShippingType { get; set; }
public string WhichProducts { get; set; }
public string AdLink { get; set; }
public string Remark { get; set; }
public List<ActivityRule> ActivityRules {
get;
set;
}
}
public class ActivityRule
{
public int ActivityRuleId
{
get;