예제 #1
0
 public ActionResult Edit(Role role)
 {
     _service.UpdateRole(role.ToBllRole());
     return RedirectToAction("Index");
 }
예제 #2
0
 public override void CreateRole(string roleName)
 {
     Roles newRole = new Roles() { Name = roleName };
     _roleService.CreateRole(newRole.ToBllRole());
 }
예제 #3
0
 public ActionResult Create(Role role)
 {
     _service.CreateRole(role.ToBllRole());
     return RedirectToAction("Index");
 }