Skip to content

Commit fce5967

Browse files
committed
delete Toggle Interests user
1 parent ed2e61f commit fce5967

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

  • backend/src/CCE.Domain/Identity

backend/src/CCE.Domain/Identity/User.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,21 +144,6 @@ public void UpdateInterests(IEnumerable<string> interests)
144144
.ToList();
145145
}
146146

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-
162147
public void AssignCountry(System.Guid countryId) => CountryId = countryId;
163148

164149
public void ClearCountry() => CountryId = null;

0 commit comments

Comments
 (0)