Add application services for profiles and neutrino
This commit is contained in:
@@ -61,7 +61,17 @@ public class Profile
|
||||
DeviceIds.Add(deviceId);
|
||||
}
|
||||
|
||||
|
||||
public void Ban()
|
||||
=> IsBanned = true;
|
||||
|
||||
public void Unban()
|
||||
=> IsBanned = false;
|
||||
|
||||
public void GrantModerator()
|
||||
=> IsModerator = true;
|
||||
|
||||
public void RevokeModerator()
|
||||
=> IsModerator = false;
|
||||
|
||||
private static string RequireValue(string value, string parameterName)
|
||||
=> !string.IsNullOrWhiteSpace(value) ? value : throw new DomainException($"{parameterName} is required.");
|
||||
|
||||
Reference in New Issue
Block a user