/// <summary> /// Overwrites an <see cref="Access"/> with values from the model's properties. /// </summary> /// <param name="settings"></param> /// <returns></returns> public Access CopyToSettings(Access settings) { settings.DefaultAccess = EnumModel.CastFromInt <DefaultAccess>(DefaultAccess); CollectionHelper.OverwriteDestinationWithSource(Addresses.Select(r => r.Cidr).ToList(), settings.Addresses); return(settings); }