We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2e61f commit fce5967Copy full SHA for fce5967
1 file changed
backend/src/CCE.Domain/Identity/User.cs
@@ -144,21 +144,6 @@ public void UpdateInterests(IEnumerable<string> interests)
144
.ToList();
145
}
146
147
- /// <summary>
148
- /// Toggles an interest. If it exists it is removed; otherwise it is added.
149
- /// Returns true if added, false if removed.
150
- /// </summary>
151
- public bool ToggleInterest(string interest)
152
- {
153
- if (string.IsNullOrWhiteSpace(interest))
154
- throw new DomainException("Interest cannot be null or empty.");
155
- var trimmed = interest.Trim();
156
- if (Interests.Remove(trimmed))
157
- return false;
158
- Interests.Add(trimmed);
159
- return true;
160
- }
161
-
162
public void AssignCountry(System.Guid countryId) => CountryId = countryId;
163
164
public void ClearCountry() => CountryId = null;
0 commit comments