Beispiel #1
0
        public ActionResult ModifyInfo()
        {
            var CoBusinessPersonnel = _coAgentService.FindById(UserInfo.UserId);

            ViewBag.jmpUser = CoBusinessPersonnel;
            return(View());
        }
Beispiel #2
0
        public ActionResult AgentUpdate()
        {
            ViewBag.UploadUrl = ConfigurationManager.AppSettings["imgurl"];

            int id = string.IsNullOrEmpty(Request["id"]) ? 0 : int.Parse(Request["id"]);

            // JMP.BLL.CoAgent bllAgent = new JMP.BLL.CoAgent();
            // JMP.MDL.CoAgent modelAgent = new JMP.MDL.CoAgent();
            //查询一条数据
            //  modelAgent = bllAgent.GetModel(id);
            var modelAgent = _coAgentService.FindById(id);

            ViewBag.modelAgent = modelAgent;
            return(View());
        }