public ActionResult Create(RoleModel role, string[] permissionIds)
        {
            if (!ModelState.IsValid)
            {
                return View(role);
            }
            role.Save(_factory.CreateRoleDao());

            return RedirectToAction("Index");
        }
 public ActionResult Edit(string id)
 {
     Role role = _roleDao.Load(id);
     var roleModel = new RoleModel(role);
     return View(roleModel);
 }