public JsonResult SaveCampaign(ACM.Model.Campaign NewCampaign, ACM.Model.CampaignTargetFileProvider[] NewCampaignTFPList, ACM.Model.CampaignLocation[] NewCampaignLocationList)
        {
            //list local variables

            CampaignRequestBO CampRequestBO = new CampaignRequestBO();

            CampRequestBO.SaveCampaign(NewCampaign, NewCampaignTFPList, NewCampaignLocationList);
            var SaveResult = new { result = "Changes Saved!" };

            return(Json(SaveResult, JsonRequestBehavior.AllowGet));
        }
示例#2
0
 public void SaveCampaign(ACM.Model.Campaign campaign, ACM.Model.CampaignTargetFileProvider[] campaignTFPL, ACM.Model.CampaignLocation[] campaignLocList)
 {
     try
     {
         CampaignRequestBO campaignRequestBO = new CampaignRequestBO();
         campaignRequestBO.SaveCampaign(campaign, campaignTFPL, campaignLocList);
     }
     catch (Exception ex)
     {
         Error.WriteException(TraceEventType.Error, ex.Message.ToString(), "SaveCampaign");
         throw;
     }
 }