private void handleAdded() { if (Name.hasErrors() || Password.hasErrors()) { return; } int type = (IsAdmin) ? 1 : 0; var model = new UserModel(0, Name.Value, Password.Value, type); }
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(); }