using ModelTools.Attributes; using ModelTools.ViewModels; namespace SecurityBusinessLogic.ViewModels { /// /// Список общих настроек системы /// public class EnviromentSettingListViewModel : ListViewModel { } /// /// Элемент общих настроек системы /// public class EnviromentSettingViewModel : ElementViewModel { [ViewModelOnListProperty("Ключ")] [MapConfiguration("Key")] public string Key { get; set; } [ViewModelOnListProperty("Значение", 100)] [MapConfiguration("Value")] public int Value { get; set; } public override string ToString() => Key; } }