19 lines
418 B
C#
19 lines
418 B
C#
namespace InnovEnergy.API.DataModel;
|
|
|
|
public static class UserParentExtensions
|
|
{
|
|
public static Boolean Remove(this UserParent parent, User user)
|
|
{
|
|
return parent.Users.Remove(user);
|
|
}
|
|
|
|
public static void Add(this UserParent parent, User user)
|
|
{
|
|
parent.Users.Add(user);
|
|
}
|
|
|
|
public static Boolean IsEmpty(this UserParent parent)
|
|
{
|
|
return !parent.Users.Any();
|
|
}
|
|
} |