示例#1
0
        public AIA.Life.Models.Common.AppVersion GetLatestVersion(AIA.Life.Models.Common.AppVersion objVersion)
        {
            //objVersion = new AppVersion();
            TpServiceLog tpServiceLog = new TpServiceLog();

            tpServiceLog.ServiceRequest = Newtonsoft.Json.JsonConvert.SerializeObject(objVersion);
            TransactLog transactLog = new TransactLog();

            transactLog.SerivceTraceID = tpServiceLog.ServiceTraceID = objVersion.ServiceTraceID;
            transactLog.UserName       = objVersion.UserName;
            string Message = ValidateUserAuth(transactLog);

            if (Message != "" && Message != null)
            {
                objVersion.Message = Message;
                return(objVersion);
            }

            objVersion = commonBusiness.GetLatestVersion(objVersion);

            tpServiceLog.ServiceResponse = Newtonsoft.Json.JsonConvert.SerializeObject(objVersion);
            commonBusiness.CreateServiceLog(tpServiceLog);
            return(objVersion);
        }