// GET: Users/Edit/5 public ActionResult Edit(string id) { IEnumerable <Role> role = usersDAO.GetAllRole(); ViewBag.AllRole = new SelectList(role, "id", "Name"); return(View()); }