public ActionResult PostAdd(RoleEditRole model) { AdminService.CreateRole(model.Name, model.RoleModule, model.RoleNode, model.IsEffect); return Success("管理员组添加成功"); }
public ActionResult PostEdit(RoleEditRole model) { AdminService.UpdateRole(model.ID,model.Name,model.IsEffect); AdminService.UpdateRoleAccess(model.ID,model.RoleModule,model.RoleNode); return Success("操作成功"); }