예제 #1
0
        /// <summary>
        /// 咨询列表
        /// </summary>
        /// <param name="userRefer"></param>
        /// <returns></returns>
        public GetUserRefer GetUserReferList(GetUserRefer userRefer)
        {
            var req             = Mapper.Map <GetUserRefer, QueryUserReferRequest>(userRefer);
            var userReferResult = OpcClient.Send <QueryUserReferResponse>(req);

            if (userReferResult.DoFlag)
            {
                userRefer.List  = Mapper.MappGereric <User_ReferExt, UserReferDetail>(userReferResult.ReferDos);
                userRefer.Total = userReferResult.Total;
            }
            return(userRefer);
        }
예제 #2
0
        public ActionResult Item(GetUserRefer userRefer)
        {
            try
            {
                userRefer = UserReferClient.Instance.GetUserReferList(userRefer);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            ViewBag.UserRefer = userRefer;

            return(View());
        }
예제 #3
0
        //  /UserRefer/

        #region 咨询列表
        public ActionResult Index(GetUserRefer userRefer)
        {
            ViewBag.UserRefer = userRefer;
            return(View(userRefer));
        }