2021-03-28 19:15:55 +04:00
|
|
|
|
using ModuleTools.BusinessLogics;
|
|
|
|
|
using ModuleTools.Enums;
|
|
|
|
|
using ModuleTools.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 UserBusinessLogic : BusinessLogicCore<UserGetBindingModel, UserSetBindingModel, UserListViewModel, UserViewModel>
|
|
|
|
|
{
|
|
|
|
|
public UserBusinessLogic(IUserService service) : base(service, "Пользователи", AccessOperation.Пользователи) { }
|
|
|
|
|
|
|
|
|
|
protected override UserViewModel ConvertToE(OperationResultModel model) => model.Result as UserViewModel;
|
|
|
|
|
|
|
|
|
|
protected override UserListViewModel ConvertToL(OperationResultModel model) => model.Result as UserListViewModel;
|
|
|
|
|
}
|
|
|
|
|
}
|