public static ExternalUserGroup From(IUserGroup source) { var group = new ExternalUserGroup(); source.CopyTo(group); return(group); }
public static T ConvertTo <T>(this IUserGroup source) where T : IUserGroup, new() { var target = new T(); source.CopyTo(target); return(target); }