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