2021-03-29 23:16:11 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.BindingModels;
|
2021-03-26 20:09:52 +04:00
|
|
|
|
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")]
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("Key")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("Value")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public string Value { get; set; }
|
2021-03-28 20:56:32 +04:00
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("Description")]
|
2021-03-28 20:56:32 +04:00
|
|
|
|
public string Description { get; set; }
|
2021-03-26 20:09:52 +04:00
|
|
|
|
}
|
|
|
|
|
}
|