示例#1
0
        public void RemoveAward(DeleteAwardPostData postData)
        {
            Campaign campaign = CampaignService.Instance.Get(postData.StoreId, postData.CampaignId);

            if (campaign == null)
            {
                return;
            }
            campaign.Awards.RemoveAll(i => i.Id == postData.AwardId);
            campaign.Save();
        }
 public void RemoveAward( DeleteAwardPostData postData )
 {
     Campaign campaign = CampaignService.Instance.Get( postData.StoreId, postData.CampaignId );
       if ( campaign == null ) return;
       campaign.Awards.RemoveAll( i => i.Id == postData.AwardId );
       campaign.Save();
 }