Dictionary を Json に変換したい。キーは文字列で、値は CompaignModel の ICollection です。
IDictionary<string, ICollection<BuzzCompaignModel>> BuzzCompaignByInterest ;
BuzzCompaign Model を含むものは次のとおりです。
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 に変換する方法