public ICommandResult Handle(UsuarioUpdateCommand command, IServiceProvider service)
        {
            //Regras e Fluxo
            command.Validate();
            if (command.Invalid)
            {
                AddNotifications(command);
                var message = "Não foi possível criar o registro. \n";
                foreach (var notification in command.Notifications)
                {
                    message += $"{notification.Property} - {notification.Message}" + "\n";
                }

                return(new CommandResult <bool>(false, message));
            }

            var usuarioRepository = (IUsuarioRepository)service.GetService(typeof(IUsuarioRepository));
            var result            = usuarioRepository.Update(command);

            if (!result)
            {
                return(new CommandResult <bool>(false, "Registro não encontrado."));
            }

            return(new CommandResult <bool>(true, "Registro atualizado com sucesso."));
        }