danesparza / MailChimp.NET

:envelope: .NET Wrapper for the MailChimp v2.0 API
MIT License
179 stars 119 forks source link

Issue with Template Id #199

Open roopeshkurian opened 8 years ago

roopeshkurian commented 8 years ago

Hello

I am trying to run a campaign. For that I am setting a template to campaign . But my campaign id is bigger than normal integer. So its giving

System.OverflowException: Value was either too large or too small for an Int16.Value was either too large or too small for an Int16.

           MailChimp.Net.MailChimpManager mns = new MailChimpManager();
            MailChimp.Net.Models.Campaign  cmp = await mns.Campaigns.GetAsync(model.CampaignId );
            cmp.Settings.TemplateId = Convert.ToInt16(model.TemplateId); //128697

Can you please check it for me? Thanks and Regards Roopesh