29 lines
807 B
C#
29 lines
807 B
C#
using CoreModels.ModelsSecurity;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using ToolsModule.ManagmentEntity;
|
|
|
|
namespace SecurityContract.BindingModels
|
|
{
|
|
/// <summary>
|
|
/// Получение общих настроек системы
|
|
/// </summary>
|
|
public class EnviromentSettingGetBindingModel : GetBindingModel
|
|
{
|
|
public string Key { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Сохранение общих настроек системы
|
|
/// </summary>
|
|
public class EnviromentSettingSetBindingModel : SetBindingModel, IEnviromentSettingModel
|
|
{
|
|
[Required(ErrorMessage = "required")]
|
|
public string Key { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string Value { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string Description { get; set; }
|
|
}
|
|
} |