3
我想將字典轉換爲Json。關鍵是一個字符串,值是CompaignModel的ICollection的:將字典轉換爲JSOn
IDictionary<string, ICollection<BuzzCompaignModel>> BuzzCompaignByInterest ;
和這裏是包含BuzzCompaign型號:
public class BuzzCompaignModel
{
public long BuzzCompaignId { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public DateTime EndDate { get; set; }
}
我如何轉換BuzzCompaignByInterest成JSON