DepartmentProject/DepartmentPortal/Security/SecurityBusinessLogic/BindingModels/EnviromentSettingBindingModels.cs
2021-03-28 20:56:32 +04:00

28 lines
740 B
C#

using ModuleTools.BindingModels;
using System.ComponentModel.DataAnnotations;
namespace SecurityBusinessLogic.BindingModels
{
/// <summary>
/// Получение общих настроек системы
/// </summary>
public class EnviromentSettingGetBindingModel : GetBindingModel
{
public string Key { get; set; }
}
/// <summary>
/// Сохранение общих настроек системы
/// </summary>
public class EnviromentSettingSetBindingModel : SetBindingModel
{
[Required(ErrorMessage = "required")]
public string Key { get; set; }
[Required(ErrorMessage = "required")]
public string Value { get; set; }
[Required(ErrorMessage = "required")]
public string Description { get; set; }
}
}