public ActionResult GetLotteryPeriod()
        {
            string id = Request.QueryString["id"];

            if (String.IsNullOrEmpty(id))
            {
                return(RespondResult(false, "参数无效。"));
            }

            Campaign_LotteryPeriodEntity period = _campaignManager.Lottery.GetLotteryPeriod(Guid.Parse(id));

            Campaign_LotterySignLogEntity log = null;

            if (MemberContext != null)
            {
                log = _campaignManager.Lottery.GetLotteryPeriodLog(
                    period.CampaignId, period.Id, MemberContext.Member.Id);
            }

            return(RespondDataResult(new
            {
                Period = period,
                Log = log
            }));
        }
        public Campaign_LotterySignLogEntity GetLotteryPeriodLog(Guid campaignId, Guid periodId, Guid memberId)
        {
            Campaign_LotterySignLogEntity campaign = new Campaign_LotterySignLogEntity();

            campaign.CampaignId = campaignId;
            campaign.Period     = periodId;
            campaign.Member     = memberId;

            if (_campaignManager.DataBase.Fill <Campaign_LotterySignLogEntity>(campaign))
            {
                return(campaign);
            }
            else
            {
                return(null);
            }
        }