Esempio n. 1
0
 public MessageResult GetGoodsInfo(int goodsId)
 {
     try
     {
         GoodsInfoModel info = goodsBLL.GetGoodsInfo(goodsId);;
         return(MessageResult.Success(info));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Esempio n. 2
0
        public MResult <ItemGoodsDetails> GetGoodsInfo(string sid, string token, string guid, string user_id, string uid, string gid)
        {
            var result = new MResult <ItemGoodsDetails>(true);

            try
            {
                var iGid = MCvHelper.To <int>(gid);
                result = GoodsBLL.GetGoodsInfo(base.SystemType.ToString(), base.Uid, (int)base.SystemType, iGid);
            }
            catch (Exception ex)
            {
                result.status = MResultStatus.ExceptionError;
                result.msg    = "处理数据出错!";
            }
            return(result);
        }