protected string DoAddMicroStats(string pRequest)
        {
            //1、反序列化请求参数
            var rp = pRequest.DeserializeJSONTo <APIRequest <AddMicroStatsRP> >();

            //2、验证参数
            if (rp != null)
            {
                rp.Parameters.Validate();
            }

            //3、拼装响应数据
            var rd = new APIResponse <AddMicroStatsRD>(new AddMicroStatsRD());

            try
            {
                //4、获取当前用户信息
                var loggingSessionInfo = Default.GetBSLoggingSession(rp.CustomerID, rp.UserID);

                //5、Access DB Result
                EclubMicroBLL bll = new EclubMicroBLL(loggingSessionInfo);
                bll.AddMicroStats(rp.Parameters.MicroID, rp.Parameters.Field);

                //返回count
                rd.Data.Count = bll.GetMicroStats(rp.Parameters.MicroID, rp.Parameters.Field);
            }
            catch (Exception ex)
            {
                Loggers.Exception(new ExceptionLogInfo(ex));
                throw new Exception(ex.Message, ex);
            }
            return(rd.ToJSON());
        }
        protected string DoMicroIssueDetailGet(string pRequest)
        {
            //1、反序列化请求参数
            var rp = pRequest.DeserializeJSONTo <APIRequest <MicroIssueDetailGetRP> >();

            //2、验证参数
            rp.Parameters.Validate();

            //3、拼装响应数据
            var rd = new APIResponse <MicroIssueDetailGetRD>(new MicroIssueDetailGetRD());

            try
            {
                //4、获取当前用户信息
                var loggingSessionInfo = Default.GetBSLoggingSession(rp.CustomerID, rp.UserID);

                //5、Access DB Result
                EclubMicroBLL bll = new EclubMicroBLL(loggingSessionInfo);
                bll.AddMicroStats(rp.Parameters.MicroID, "Clicks");//Record browse

                List <Guid?> IdsLst = new List <Guid?>();
                rd.Data.EclubMicros = new EclubMicroBLL(loggingSessionInfo).MicroIssueDetailGet(new EclubMicroEntity()
                {
                    MicroID = rp.Parameters.MicroID, MicroTypeID = rp.Parameters.MicroTypeID, MicroNumberID = rp.Parameters.MicroNumberID
                }, ref IdsLst);
                rd.Data.MicroIDS = IdsLst;
            }
            catch (Exception ex)
            {
                Loggers.Exception(new ExceptionLogInfo(ex));
                throw new Exception(ex.Message, ex);
            }
            return(rd.ToJSON());
        }