Esempio n. 1
0
        public ActionResult Index()
        {
            var usrId = Session.GetUserId();

            if (usrId == null)
            {
                throw new Exception("未找到登录用户信息");
            }
            var rst = _usrDetailSrv.GetDetailsById(usrId);

            if (rst.ResultType != OperationResultType.Success)
            {
                throw new Exception("未找到登录用户信息" + rst.Message);
            }

            return(View(rst.AppendData as UserDetailsViewModel));
        }