public void AddRole(IRole entity) { entity.CheckArgument(nameof(entity)); var item = new Role(); item.CopyProperties(entity); RoleEntities.Add(item); }
public void RemoveRole(IRole entity) { entity.CheckArgument(nameof(entity)); foreach (var item in RoleEntities) { if (entity.Id != 0 && entity.Id == item.Id) { RoleEntities.Remove(item); } else if (item.Description != null && item.Description.Equals(item.Description)) { RoleEntities.Remove(item); } } }
public void RemoveRole(IRole role) { role.CheckArgument(nameof(role)); }
public void AddRole(IRole role) { role.CheckArgument(nameof(role)); }