Exemplo n.º 1
0
        public ActionResult DateilUserRefer(int?id, int?type, int pageIndex, int PageSize)
        {
            var viewModel = new UserReferByProduct();

            try
            {
                viewModel = UserReferClient.Instance.QueryUserReferByPId(id.Value, type.Value, pageIndex, PageSize);

                ViewBag.viewUserRef = viewModel;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(View(viewModel));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 根据商品Id查询对应的咨询列表 回复列表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public UserReferByProduct QueryUserReferByPId(int id, int type, int pageIndex, int PageSize)
        {
            var req = new QueryUserReferByPIdRequest();

            req.IntProductID = id;
            req.IntReferType = type;
            req.PageIndex    = pageIndex;
            req.PageSize     = PageSize;
            var result = new UserReferByProduct();

            var res = OpcClient.Send <QueryUserReferByPIdResponse>(req);

            if (res.DoFlag)
            {
                result.UserReferDos = Mapper.MappGereric <User_ReferExt, UserReferDetail>(res.ConsultationDos);
            }
            return(result);
        }