DepartmentProject/DepartmentPortal/Security/SecurityBusinessLogic/ViewModels/EnviromentSettingViewModels.cs

26 lines
730 B
C#

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