start working on security group view
This commit is contained in:
@ -7,13 +7,13 @@ namespace UserService.Infrastructure
|
||||
{
|
||||
public static class Validators
|
||||
{
|
||||
public static bool? ValidateEmail(string mailAddress)
|
||||
public static bool? ValidateEmail(string? mailAddress)
|
||||
{
|
||||
if (string.IsNullOrEmpty(mailAddress)) return null;
|
||||
return new EmailAddressAttribute().IsValid(mailAddress);
|
||||
}
|
||||
|
||||
public static bool? ValidateCommonName(string commonName, IReadOnlyList<User> users)
|
||||
public static bool? ValidateCommonName(string? commonName, IEnumerable<Member> users)
|
||||
{
|
||||
if (string.IsNullOrEmpty(commonName)) return false;
|
||||
return users.All(x => x.CommonName != commonName);
|
||||
|
Reference in New Issue
Block a user