//角色添加 public ActionResult RoleAdd() { Role model = new Role(); RoleBll bll = new RoleBll(); if (Request.QueryString["RoleId"] != null) { model = bll.GetModel(int.Parse(Request.QueryString["RoleId"])); } return(View(model)); }