public ActionResult Index(AgentInfoView model) { ReturnData<string> ret=new ReturnData<string>(); AgentInfoViewBll bll=new AgentInfoViewBll(); ret=bll.EditAgent(model); return Json(ret); }
public ActionResult Index(AgentInfoView model) { ReturnData <string> ret = new ReturnData <string>(); AgentInfoViewBll bll = new AgentInfoViewBll(); ret = bll.EditAgent(model); return(Json(ret)); }
// GET: AgentState/AgentInfo public ActionResult Index() { AgentInfoViewBll bll=new AgentInfoViewBll(); AgentInfoView model = bll.GetModel(AgentLoginUser.UserBasicID, AgentLoginUser.UserBasic.EnterpriseID); List<SelectListItem> list = new List<SelectListItem>(); SelectListItem item1 = new SelectListItem(); item1.Text = "男"; item1.Value = "1"; list.Add(item1); SelectListItem item3 = new SelectListItem(); item3.Text = "女"; item3.Value = "2"; list.Add(item3); SelectListItem item5 = new SelectListItem(); item5.Text = "保密"; item5.Value = "0"; list.Add(item5); ViewBag.Sex = new SelectList(list, "Value", "Text", model.Sex); return View(model); }
// GET: AgentState/AgentInfo public ActionResult Index() { AgentInfoViewBll bll = new AgentInfoViewBll(); AgentInfoView model = bll.GetModel(AgentLoginUser.UserBasicID, AgentLoginUser.UserBasic.EnterpriseID); List <SelectListItem> list = new List <SelectListItem>(); SelectListItem item1 = new SelectListItem(); item1.Text = "男"; item1.Value = "1"; list.Add(item1); SelectListItem item3 = new SelectListItem(); item3.Text = "女"; item3.Value = "2"; list.Add(item3); SelectListItem item5 = new SelectListItem(); item5.Text = "保密"; item5.Value = "0"; list.Add(item5); ViewBag.Sex = new SelectList(list, "Value", "Text", model.Sex); return(View(model)); }