using ModelTools.BusinessLogics;
using ModelTools.Enums;
using ModelTools.OperationResultModels;
using SecurityBusinessLogic.BindingModels;
using SecurityBusinessLogic.Interfaces;
using SecurityBusinessLogic.ViewModels;
namespace SecurityBusinessLogic.BusinessLogics
{
///
/// Логика работы с доступами
///
public class AccessBusinessLogic : BusinessLogicCore
{
public AccessBusinessLogic(IAccessService service) : base(service, "Доступы", AccessOperation.Доступы) { }
protected override AccessViewModel ConvertToE(OperationResultModel model) => model.Result as AccessViewModel;
protected override AccessListViewModel ConvertToL(OperationResultModel model) => model.Result as AccessListViewModel;
}
}