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

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

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

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

                //5、Access DB Result
                LNewsBLL bll = new LNewsBLL(loggingSessionInfo);
                bll.SetMicroNewsColl(rp.Parameters.NewsId, rp.Parameters.Field);

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

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

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

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

                //5、Access DB Result
                LNewsBLL bll = new LNewsBLL(loggingSessionInfo);
                bll.SetMicroNewsColl(rp.Parameters.NewsId, "BrowseCount");//Record browse

                rd.Data.MicroNews    = bll.GetMicroNewsDetail(rp.Parameters.NewsId);
                rd.Data.MicroNewsIDs = bll.GetMicroNewsSiblingsId(rp.Parameters.MicroNumberID, rp.Parameters.MicroTypeID);
            }
            catch (Exception ex)
            {
                Loggers.Exception(new ExceptionLogInfo(ex));
                throw new Exception(ex.Message, ex);
            }
            return(rd.ToJSON());
        }