Beispiel #1
0
        public override void Approve(string userName, Campaign context)
        {
            string message = String.Format("{0} approved {1} campaign {2}", userName, context.State.Name, this.Name);

            AdvertiserNotificationService.NotifyAdvertiser(context.Advertiser, message);
            context.State         = CampaignState.Approved;
            context.LastUpdatedBy = userName;
        }
Beispiel #2
0
        public virtual void Cancel(string userName, Campaign context)
        {
            // alternately you can leave the working behavior in the base class, if it's common
            string message = String.Format("{0} cancelled {1} campaign {2}", userName, context.State.Name, this.Name);

            AdvertiserNotificationService.NotifyAdvertiser(context.Advertiser, message);
            context.State         = CampaignState.Cancelled;
            context.LastUpdatedBy = userName;
        }