public ICommandResult Handler(RemoveUserOfListCommand command) { command.Validate(); if (command.Invalid) { return(new GenericCommandResult(false, "Alguma coisa deu errada", command.Notifications)); } _userListRepository.DeleteUserList(command.ListId, command.UserId); return(new GenericCommandResult(true, "Sucesso", "excluido com sucesso")); }