public RoleDeleteResponse Execute(RoleDeleteRequest request) { RoleDeleteResponse roleDeleteResponse = new RoleDeleteResponse(); ServiceHelper.LoadService <IRoleService>().Delete(ServiceHelper.LoadService <IRoleService>().Get(request.RoleId)); return(roleDeleteResponse); }
private void DeleteRole(RoleModel model) { if (MessageBox.Show("确认删除该角色吗?", "提示", MessageBoxButton.OKCancel) != MessageBoxResult.OK) { return; } RoleDeleteResponse roleDeleteResponse = LocalApi.Execute(new RoleDeleteRequest() { RoleId = model.RoleId }); this.RefreshData(); }