示例#1
0
        public ApiMessage GetPayTypes()
        {
            ApiMessage message = new ApiMessage() { Status = "ERROR", Message = "获取支付方式数据失败", Item = null };
            try
            {
                BaseManagement baseMgt = new BL.BaseManagement(User.Identity.Name);
                List<DAL.PayType> sps = baseMgt.GetPayTypes();
                message.Status = "OK";
                message.Message = "成功获取支付方式数据,请使用JSON Item节点数据";
                message.Item = sps;
            }
            catch
            { }

            return message;
        }
示例#2
0
        public ApiMessage GetPayTypes()
        {
            ApiMessage message = new ApiMessage()
            {
                Status = "ERROR", Message = "获取支付方式数据失败", Item = null
            };

            try
            {
                BaseManagement     baseMgt = new BL.BaseManagement(User.Identity.Name);
                List <DAL.PayType> sps     = baseMgt.GetPayTypes();
                message.Status  = "OK";
                message.Message = "成功获取支付方式数据,请使用JSON Item节点数据";
                message.Item    = sps;
            }
            catch
            { }

            return(message);
        }