public Task <Response> Handle(Request request, CancellationToken cancellationToken) => Task.FromResult(new Response() { Roles = _repository.Query <Role>().Select(x => RoleDto.FromRole(x)).ToList() });
public Task <Response> Handle(Request request, CancellationToken cancellationToken) => Task.FromResult(new Response() { Role = RoleDto.FromRole(_repository.Query <Role>().Single(x => x.RoleId == request.RoleId)) });