2021-03-26 20:09:52 +04:00
|
|
|
|
using ModelTools.BusinessLogics;
|
|
|
|
|
using ModelTools.Enums;
|
2021-03-27 23:50:29 +04:00
|
|
|
|
using ModelTools.Models;
|
2021-03-26 20:09:52 +04:00
|
|
|
|
using SecurityBusinessLogic.BindingModels;
|
|
|
|
|
using SecurityBusinessLogic.Interfaces;
|
|
|
|
|
using SecurityBusinessLogic.ViewModels;
|
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.BusinessLogics
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Логика работы с общими настройками системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EnviromentSettingBusinessLogic : BusinessLogicCore<EnviromentSettingGetBindingModel, EnviromentSettingSetBindingModel,
|
|
|
|
|
EnviromentSettingListViewModel, EnviromentSettingViewModel>
|
|
|
|
|
{
|
|
|
|
|
public EnviromentSettingBusinessLogic(IEnviromentSettingService service) : base(service, "Настройки Среды", AccessOperation.НастройкиСреды) { }
|
|
|
|
|
|
|
|
|
|
protected override EnviromentSettingViewModel ConvertToE(OperationResultModel model) => model.Result as EnviromentSettingViewModel;
|
|
|
|
|
|
|
|
|
|
protected override EnviromentSettingListViewModel ConvertToL(OperationResultModel model) => model.Result as EnviromentSettingListViewModel;
|
|
|
|
|
}
|
|
|
|
|
}
|