public GerencCommandResult GetAll(
            [FromServices] ListarUsuarioQueryHandler handler
            )
        {
            var query = new ListaUsuarioResult();

            return((GerencCommandResult)handler.Handle(query));
        }
Example #2
0
        public GenericCommandResult GetAll(
            [FromServices] ListarUsuarioQueryHandler handler
            )
        {
            //command.User = User.Claims.FirstOrDefault(x => x.Type == "user_id")?.Value;
            var query = new ListarUsuarioQuery();

            return((GenericCommandResult)handler.Handle(query));
        }