private void handleAdd() { if (Type.hasErrors() || Name.hasErrors()) { return; } TagModel model = new TagModel(0, Name.Value, Type.Value); Collection.handleAddRequest(model); clear(); }
private void handleUpdate() { if (UpdateType.hasErrors()) { return; } IUpdater <TagModel> updater = TagUpdater.createTypeUpdater(UpdateType.Value); Collection.handleMultipleUpdateRequest(updater); clear(); }